From 199f74ecbaa9db6d6fa5676e793f1b4ee79cd6dd Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 27 Jul 2016 13:17:01 +0100 Subject: [PATCH] Fixed NullReferenceException with nameText in SayDialog #517 --- Assets/Fungus/Narrative/Scripts/SayDialog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Fungus/Narrative/Scripts/SayDialog.cs b/Assets/Fungus/Narrative/Scripts/SayDialog.cs index 7d8f8558..daf0f3e9 100644 --- a/Assets/Fungus/Narrative/Scripts/SayDialog.cs +++ b/Assets/Fungus/Narrative/Scripts/SayDialog.cs @@ -136,7 +136,7 @@ namespace Fungus // Start method of another component, so check that no image has been set yet. // Same for nameText. - if (nameText.text == "") + if (nameText != null && nameText.text == "") { SetCharacterName("", Color.white); }