This is a one very edge case bug but, I wanted to share it just in case. Sometimes random actionlists can get deleted, if you launch a project that doesn't compile (there are errors in other scripts). Then some (random?) actionlists become empty and an error gets thrown when you try to select it. Maybe there is a possibility of adding some failsafes? (my version 1.54c).
Error Message:
NullReferenceException: Object reference not set to an instance of an object
AC.ActionListEditor.ResizeList (System.Collections.Generic.List`1 list, Int32 listSize) (at Assets/AdventureCreator/Scripts/ActionList/Editor/ActionListEditor.cs:530)
AC.ActionListEditor.DrawSharedElements (AC.ActionList _target) (at Assets/AdventureCreator/Scripts/ActionList/Editor/ActionListEditor.cs:232)
AC.InteractionEditor.OnInspectorGUI () (at Assets/AdventureCreator/Scripts/Logic/Editor/InteractionEditor.cs:17)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1235)
UnityEditor.DockArea:OnGUI()
ActionListEditor.cs:530 being: "idArray.Add (_action.id);" within a for loop.
Comments