NullReferenceException: DrawConversationSectionNodeStyle ()

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
KS_devteam
Posts: 6
Joined: Tue Apr 11, 2023 11:09 am

NullReferenceException: DrawConversationSectionNodeStyle ()

Post by KS_devteam »

Hi,

since the latest update we're experiencing a strange bug that appears in all conversations and databases of our game.
Whenever zooming in the conversations editor window, we recieve this Error Message in the console:
NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawConversationSectionNodeStyle () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/Nodes/DialogueEditorWindowConversationNodeEditor.cs:173)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawConversationSection () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowConversationSection.cs:158)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawCurrentSection () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:465)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.DrawMainBody () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:430)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.OnGUI () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:336)
Also arranging the nodes automatically seems to be broken, because this causes extremely wide distances between directly related nodes and shifts every node diagonally over the whole screen. Unfortunately this happens to everyone in our team individually.

We're currently using Unity version 2022.31f1

Thank You! :)
Attachments
Node alignment bug.png
Node alignment bug.png (113.97 KiB) Viewed 115 times
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: NullReferenceException: DrawConversationSectionNodeStyle ()

Post by Tony Li »

Hi,

That NullReferenceException issue is fixed in 2.2.38.2, which should be available today. (2.2.38.1 introduced this error while working around a bug in Unity 2022.3.1.)

The new auto-arrange algorithm can produce arrangements like this with certain conversation trees, but it arranges broad conversation trees more nicely than the original algorithm. In 2.2.38.2, there are now two menu items for vertical arrangement: the current style and the previous style. For conversation trees like this one you can use the previous style to get something more narrow.
KS_devteam
Posts: 6
Joined: Tue Apr 11, 2023 11:09 am

Re: NullReferenceException: DrawConversationSectionNodeStyle ()

Post by KS_devteam »

Great, thank you for the update!
Post Reply