Page 1 of 1

Null Reference Exception for conversation

Posted: Mon May 27, 2019 11:25 pm
by obsidianmystic
Hello,

Was wondering if I could get some help on this.

I have a strange error where when I attempt to run a Start Conversation action via the OnUse() function of a Dialogue System Trigger component, I get a null reference exception pointing to the line:

var conversationAsset = DialogueManager.MasterDatabase.GetConversation(conversation);

in DialogueSystemTrigger.cs.

I for sure have the correct conversation picked in the conversation drop down and I had a test conversation working fine before I tried to assign this new conversation. So I'm not sure where the problem is coming from.

Re: Null Reference Exception for conversation

Posted: Tue May 28, 2019 8:37 am
by Tony Li
Hi,

Does your scene have a Dialogue Manager GameObject?

Re: Null Reference Exception for conversation

Posted: Tue May 28, 2019 8:55 am
by obsidianmystic
Sometimes it really is just that easy... I had it disabled.

Thanks Tony.

Re: Null Reference Exception for conversation

Posted: Tue May 28, 2019 9:07 am
by Tony Li
Glad that was it! Thanks for making my morning by letting me guess one right on the first try. :)