We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f11cd9 commit ed7fd19Copy full SHA for ed7fd19
1 file changed
SQL_Engine/Convert/FromDictionary.cs
@@ -50,7 +50,7 @@ public static object FromDictionary(this Dictionary<string, object> dic, Type ty
50
{
51
try
52
53
- if (instance is BHoMObject || !kvp.Key.StartsWith("_"))
+ if (instance is BHoMObject && !kvp.Key.StartsWith("_") && kvp.Value != null && !(kvp.Value is DBNull))
54
instance.SetPropertyValue(kvp.Key, kvp.Value);
55
}
56
catch { }
0 commit comments