AngryAnt/Behave-release — Issue #34: NRE on Behave 1.4-WIP debugger for 3.5b2 when tree is destroyed
Author: ricardojmendez
Created: 2011-11-20 17:07:31+00:00
State: open

When the tree you're watching is destroyed (for instance, the agent disappears or his tree is disposed), the debugger will throw up a NRE

> NullReferenceException: Object reference not set to an instance of an object
> Behave.Editor.DebugWindow.OnTreeGUI (Behave.Runtime.Tree tree, Vector2 origin)
> Behave.Editor.DebugWindow.OnGUI ()
> BehaveDebugWindow.OnGUI () (at Assets/Behave/Editor/BehaveDebugWindow.cs:98)
> System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)