diff --git a/Facepunch.Steamworks/Structs/InventoryDef.cs b/Facepunch.Steamworks/Structs/InventoryDef.cs index 2afb6f7..332e2a4 100644 --- a/Facepunch.Steamworks/Structs/InventoryDef.cs +++ b/Facepunch.Steamworks/Structs/InventoryDef.cs @@ -95,7 +95,7 @@ public InventoryRecipe[] GetRecipes() /// public string GetProperty( string name ) { - if ( _properties!= null && _properties.TryGetValue( name, out string val ) ) + if (name != null && _properties!= null && _properties.TryGetValue( name, out string val ) ) return val; uint _ = (uint)Helpers.MaxStringSize;