playMaker

Author Topic: Weird null reference exceptions  (Read 6600 times)

jz87

  • Playmaker Newbie
  • *
  • Posts: 7
Weird null reference exceptions
« on: May 11, 2011, 09:58:29 PM »
I'm getting this weird exception. The strange thing is that there are no errors in the state machine and it runs perfectly fine. I just get a ton of these exceptions which is annoying because it drowns out other, more relevant exceptions.

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.SetLayer.DoSetLayer () (at Assets/PlayMaker/Actions/SetLayer.cs:31)
HutongGames.PlayMaker.Actions.SetLayer.OnEnter () (at Assets/PlayMaker/Actions/SetLayer.cs:24)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
HutongGames.PlayMaker.Fsm.Event (System.String fsmEventName)
HutongGames.PlayMaker.Actions.BroadcastEvent.BroadcastToAll () (at Assets/PlayMaker/Actions/BroadcastEvent.cs:60)
HutongGames.PlayMaker.Actions.BroadcastEvent.OnEnter () (at Assets/PlayMaker/Actions/BroadcastEvent.cs:38)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
HutongGames.PlayMaker.Fsm.Event (System.String fsmEventName)
PlayMakerFSM.OnMouseDown ()
UnityEngine.SendMouseEvents:DoSendMouseEvents()