AngryAnt / Behave-release

The Behave project is a system for designing, integrating and running behaviour logic using Behaviour Trees for simulated characters in unity projects. NOTE: This project relates to Behave 1. For Behave 2 support and information, please use the AngryAnt community at http://community.angryant.com
http://angryant.com/behave
34 stars 6 forks source link

NRE on Behave 1.4-WIP debugger for 3.5b2 when tree is destroyed #34

Closed ricardojmendez closed 11 years ago

ricardojmendez commented 12 years ago

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)

ricardojmendez commented 12 years ago

Also got it what appears to be the same issue as:

NullReferenceException: Object reference not set to an instance of an object Behave.Editor.DebugWindow.OnTreeListItemGUI (System.Object item, Boolean selected, ICollection list) Behave.Editor.Resources.SelectList (ICollection list, System.Object selected, Behave.Editor.OnListItemGUI itemHandler) 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)

AngryAnt commented 12 years ago

Are you still seeing this issue after the release of 1.4?

ricardojmendez commented 12 years ago

Not recently, but haven't really been using the debugger lately. Let me get back to you on it.

AngryAnt commented 11 years ago

Fixed in upcoming release.