From e2a6a2f7925e6777bd12dc357536770165be88fe Mon Sep 17 00:00:00 2001 From: benbierens Date: Sun, 8 Oct 2023 07:46:48 +0200 Subject: [PATCH] fixes possible null-ref --- Framework/ArgsUniform/ArgsUniform.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/ArgsUniform/ArgsUniform.cs b/Framework/ArgsUniform/ArgsUniform.cs index db1a6b2..d987aa7 100644 --- a/Framework/ArgsUniform/ArgsUniform.cs +++ b/Framework/ArgsUniform/ArgsUniform.cs @@ -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); }