NRE when using container in the editor
ihsoft opened this issue ยท 0 comments
Drop a port into container. Then drop the same port in the same slot. An NRE is thrown:
161228T113405.393 [EXCEPTION] [Part.disconnect] NullReferenceException: Object reference not set to an instance of an object
at Part.disconnect (Boolean controlledSeparation)
at Part.Die ()
at KIS.ModuleKISInventory.GuiHandleUsedSlot (Rect textureRect, Int32 slotIndex)
at KIS.ModuleKISInventory.GuiInventory ()
at KIS.ModuleKISInventory.GuiMain (Int32 windowID)
at UnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID)
at UnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style)
The dropped part is successfully stacked in the container. It doesn't seem there side effects.