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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

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

Post 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.
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

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

Post by Abelius »

Great thanks!
Unity 2019.4.9f1
Dialogue System 2.2.15
Post Reply