Fix ManagedDictionary error on null object
This commit is contained in:
@@ -205,6 +205,8 @@ namespace FlaxEngine
|
||||
|
||||
internal static object[] GetDictionaryKeys(IDictionary dictionary)
|
||||
{
|
||||
if (dictionary == null)
|
||||
return null;
|
||||
var keys = dictionary.Keys;
|
||||
var result = new object[keys.Count];
|
||||
keys.CopyTo(result, 0);
|
||||
|
||||
Reference in New Issue
Block a user