Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: Murcho on October 05, 2011, 01:51:37 AM

Title: 1.2 Reproducible bug [FIXED]
Post by: Murcho on October 05, 2011, 01:51:37 AM
Have spent some time away from PlayMaker due to work, but finally getting back into it.  Got a bug straight off the bat :P.

If you add an FSM to a GameObject via the drop down menu "PlayMaker->Components->Add FSM To Selected Objects" with the PlayMaker Editor Window closed, this error occurs :

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMakerEditor.FsmEditor.SelectState (HutongGames.PlayMaker.FsmState state, Boolean frameState)
HutongGames.PlayMakerEditor.FsmBuilder.AddFsmToSelected ()
PlayMakerMainMenu.AddFsmToSelected () (at Assets/PlayMaker/Editor/PlayMakerMainMenu.cs:121)

This error does not appear if the editor window is open and the drop down menu is used, and does not happen if adding an FSM directly through the Editor Window.
Title: Re: 1.2 Reproducible bug
Post by: Alex Chouls on October 05, 2011, 02:08:20 PM
Good catch! Fixed in 1.2.1
Title: Re: 1.2 Reproducible bug
Post by: Murcho on October 05, 2011, 06:27:11 PM
I've spent too long using Facebook.  I just went looking for a 'like' button on your post.

Cheers Alex, speedy as always!