Skip to content

Commit bd98e60

Browse files
nullable string
Co-authored-by: Michael Render <[email protected]>
1 parent 81c7fc5 commit bd98e60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/BiDi/Modules/Script/LocalValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace OpenQA.Selenium.BiDi.Modules.Script;
3737
public abstract record LocalValue
3838
{
3939
public static implicit operator LocalValue(int value) { return new NumberLocalValue(value); }
40-
public static implicit operator LocalValue(string value) { return new StringLocalValue(value); }
40+
public static implicit operator LocalValue(string? value) { return value is null ? new NullLocalValue() : new StringLocalValue(value); }
4141

4242
// TODO: Extend converting from types
4343
public static LocalValue ConvertFrom(object? value)

0 commit comments

Comments
 (0)