Fix ManagedDictionary error on null object

This commit is contained in:
Wojtek Figat
2023-03-29 10:32:30 +02:00
parent de566a361a
commit fd23a61846
2 changed files with 5 additions and 1 deletions

View File

@@ -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);