Browse Source

Null pointer check when iterating on Sequence commands

master
chrisgregan 10 years ago
parent
commit
fa2e37e90e
  1. 5
      Assets/Fungus/FungusScript/Scripts/Sequence.cs

5
Assets/Fungus/FungusScript/Scripts/Sequence.cs

@ -215,7 +215,10 @@ namespace Fungus
List<Sequence> connectedSequences = new List<Sequence>(); List<Sequence> connectedSequences = new List<Sequence>();
foreach (Command command in commandList) foreach (Command command in commandList)
{ {
command.GetConnectedSequences(ref connectedSequences); if (command != null)
{
command.GetConnectedSequences(ref connectedSequences);
}
} }
return connectedSequences; return connectedSequences;
} }

Loading…
Cancel
Save