diff --git a/Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs b/Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs index 3d3eeca4..3e230f8f 100755 --- a/Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs +++ b/Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs @@ -34,6 +34,11 @@ namespace Fungus { // Ensure the Sequence Inspector is always showing the currently selected sequence FungusScript fungusScript = GetFungusScript(); + if (fungusScript == null) + { + return; + } + if (fungusScript.selectedSequence != null) { if (sequenceInspector == null)