Page 1 of 1

Possible bug (?): Null Reference Exception first time a convo is selected

Posted: Thu Jul 19, 2018 6:22 am
by Abelius
Hi there,

I consistently get this...:

Image
Spoiler

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.SetCurrentEntry (PixelCrushers.DialogueSystem.DialogueEntry entry)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.SetCurrentEntryByID ()
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.SetCurrentConversationByID ()
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.UpdateReferencesByID ()
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.SelectObject (UnityEngine.Object obj)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.OnSelectionChange ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:249)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:242)
UnityEditor.HostView.OnSelectionChange () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:135)
Every time I open Unity and select a conversation from the drop-down list. Also, the control remains blank.

Then, if I do it again, it works well for the remainder of my Unity session. I don't know if it happens to me only.

My versions are those of my signature. If you need more feedback, please ask me.

Thanks.

Re: Possible bug (?): Null Reference Exception first time a convo is selected

Posted: Thu Jul 19, 2018 7:57 am
by Tony Li
Looks like a version 1.8.5 is in the future. That bug came with the "Go" button in the node inspector's link section. It was fixed in the version 2.0.2 branch but didn't get rolled into the 1.8.4 branch. I'll make a patch available this weekend.

Re: Possible bug (?): Null Reference Exception first time a convo is selected

Posted: Thu Jul 19, 2018 10:31 am
by Abelius
Great thanks!