mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-04-18 16:53:13 +00:00
fixes possible null-ref
This commit is contained in:
parent
4f764ac4c7
commit
e2a6a2f792
@ -234,7 +234,7 @@ namespace ArgsUniform
|
||||
private static bool AssignBool(T result, PropertyInfo uniformProperty, object value)
|
||||
{
|
||||
var s = value.ToString();
|
||||
if (s == "1" || s.ToLowerInvariant() == "true")
|
||||
if (s == "1" || (s != null && s.ToLowerInvariant() == "true"))
|
||||
{
|
||||
uniformProperty.SetValue(result, true);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user