playMaker

Author Topic: [SOLVED]Error: NullReferenceException: Object reference not set to an in  (Read 3784 times)

s0963123

  • Playmaker Newbie
  • *
  • Posts: 14
HI,

I got a lot of error message regarding "NullReferenceException: Object reference not set to an instance of an object" lately.

Any possible cause of it? Or any advice on how should I troubleshoot?

Unity version:2019.1.14f1
Playmaker version: 1.9.0 p19

First, I think it is related to my FSM error. So I kind of ignore it. But then now, my error checker says I got ZERO FSM error right now, but I still got those warning.

Can anyone help?
Thanks.

one of the Error message :

NullReferenceException: Object reference not set to an instance of an object
PlayMakerFSM.get_Fsm () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:832)
HutongGames.PlayMaker.PlayMakerUiEventBase.SendEvent (HutongGames.PlayMaker.FsmEvent fsmEvent) (at Assets/PlayMaker/Actions/UI/Components/PlayMakerUiEventBase.cs:58)
HutongGames.PlayMaker.PlayMakerUiClickEvent.DoOnClick () (at Assets/PlayMaker/Actions/UI/Components/PlayMakerUiClickEvent.cs:41)
UnityEngine.Events.InvokableCall.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent/UnityEvent.cs:166)
UnityEngine.Events.UnityEvent.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent/UnityEvent/UnityEvent_0.cs:58)
UnityEngine.UI.Button.Press () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:66)
UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:108)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:50)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:261)
UnityEngine.EventSystems.EventSystem:Update()
« Last Edit: July 15, 2020, 08:26:40 PM by s0963123 »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Hi.
Do you have a ui Pointer On Click Action.
This might not have a game object connected.

Do you get the errors in play mode or also when you open unity or a scene (without pressing play)

s0963123

  • Playmaker Newbie
  • *
  • Posts: 14
Thanks for the help.
I have located the problem, it is because I mistakenly add empty "Play Maker Ui Click Event(Script)" from Doozy UI.
After I delete all those, problem solved. Thanks!