We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c7fc5 commit bd98e60Copy full SHA for bd98e60
dotnet/src/webdriver/BiDi/Modules/Script/LocalValue.cs
@@ -37,7 +37,7 @@ namespace OpenQA.Selenium.BiDi.Modules.Script;
37
public abstract record LocalValue
38
{
39
public static implicit operator LocalValue(int value) { return new NumberLocalValue(value); }
40
- public static implicit operator LocalValue(string value) { return new StringLocalValue(value); }
+ public static implicit operator LocalValue(string? value) { return value is null ? new NullLocalValue() : new StringLocalValue(value); }
41
42
// TODO: Extend converting from types
43
public static LocalValue ConvertFrom(object? value)
0 commit comments