playMaker

Author Topic: Null Exception on State with no Action[SOLVED]  (Read 2508 times)

joaobsneto

  • Playmaker Newbie
  • *
  • Posts: 6
Null Exception on State with no Action[SOLVED]
« on: March 06, 2017, 10:11:55 PM »
PlayMaker Version: 1.8.3.f4; Unity Version: 5.5.0f3; O.S.: Windows 10
Create a FSM Template, add a State with no Action. Close the editor and open it again. Get the following error:

Code: [Select]
System.NullReferenceException: Object reference not set to an instance of an object
  at HutongGames.PlayMaker.ActionData.GetParamDataType (System.Type type) [0x00302] in c:\Users\Alex\Documents\Unity\Playmaker\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:3185
  at HutongGames.PlayMaker.ActionData.TryConvertParameter (HutongGames.PlayMaker.Context context, HutongGames.PlayMaker.FsmStateAction action, System.Reflection.FieldInfo field, Int32 paramIndex) [0x006d8] in c:\Users\Alex\Documents\Unity\Playmaker\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:2451
  at HutongGames.PlayMaker.ActionData.TryRecoverAction (HutongGames.PlayMaker.Context context, System.Type actionType, HutongGames.PlayMaker.FsmStateAction action, Int32 actionIndex) [0x000ef] in c:\Users\Alex\Documents\Unity\Playmaker\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:2154
  at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.Context context, Int32 actionIndex) [0x00206] in c:\Users\Alex\Documents\Unity\Playmaker\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:909
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMakerEditor.FsmErrorChecker:DoCheckFsmForErrors(Fsm) (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmErrorChecker.cs:301)
HutongGames.PlayMakerEditor.FsmErrorChecker:DoCheckForErrors() (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmErrorChecker.cs:232)
HutongGames.PlayMakerEditor.FsmErrorChecker:Update() (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmErrorChecker.cs:197)
HutongGames.PlayMakerEditor.FsmEditor:Update() (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmEditor.cs:828)
HutongGames.PlayMakerEditor.FsmEditorWindow:Update() (at Assets/PlayMaker/Editor/FsmEditorWindow.cs:336)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Code: [Select]
« Last Edit: March 09, 2017, 01:04:16 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Null Exception on State with no Action
« Reply #1 on: March 07, 2017, 12:45:41 AM »
Hi,

 Odd, is it reproduceable?

 Bye,

 Jean

joaobsneto

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Null Exception on State with no Action
« Reply #2 on: March 07, 2017, 09:26:13 AM »
Hi,

I build another project to test and it's working. Sorry about that.
I think I damaged my project trying to create a fsm template via script.

Thanks!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Null Exception on State with no Action
« Reply #3 on: March 09, 2017, 01:04:02 AM »
Hi,

 Cool, let us know how you progress with programmatic fsm generation.

 Bye,

 Jean