Forum rules - please read before posting.

Null reference exception when using variable find local references.

Using find local references produces a null reference error int
ActionSpeech.cs line 426:

if (messageText.Contains (tokenText) && messageParameterID < 0)

adding !string.IsNullOrEmpty(messageText) to the start of the check fixes the problem. In my project ActionSpeech is a disabled action, so this might have something to do with messageText acquiring the ability to be null instead of empty.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.