diff --git a/Assets/Fungus/Scripts/Components/NarrativeLog.cs b/Assets/Fungus/Scripts/Components/NarrativeLog.cs index 8a7a7f6c..643233ff 100644 --- a/Assets/Fungus/Scripts/Components/NarrativeLog.cs +++ b/Assets/Fungus/Scripts/Components/NarrativeLog.cs @@ -66,8 +66,11 @@ namespace Fungus { if (writerState == WriterState.End) { - AddLine(SayDialog.GetSayDialog().NameText.text, - SayDialog.GetSayDialog().StoryText.text); + var sd = SayDialog.GetSayDialog(); + var from = sd.NameText != null ? sd.NameText.text : string.Empty; + var line = sd.StoryText != null ? sd.StoryText.text : string.Empty; + + AddLine(from, line); } }