Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: adgrist on July 18, 2014, 06:22:34 AM

Title: Variable crashes Playmaker - Argument cannot be null
Post by: adgrist on July 18, 2014, 06:22:34 AM
Having noticed that an element of our project is not working correctly, i noticed that a variable had just been set to 'none' in all the actions where it is used. When checking the available variables, it turns out it still exists, but when clicking it, playmaker has an exception. This is an Object variable

Quote
ArgumentNullException: Argument cannot be null.
Parameter name: key
System.Collections.Generic.Dictionary`2[System.Type,HutongGames.PlayMakerEditor.ObjectPropertyDrawer].TryGetValue (System.Type key, HutongGames.PlayMakerEditor.ObjectPropertyDrawer& value) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:588)
HutongGames.PlayMakerEditor.ObjectPropertyDrawers.GetObjectPropertyDrawer (System.Type objType)
HutongGames.PlayMakerEditor.FsmVariable.DoValueGUI (UnityEngine.GUIContent label, Boolean isAsset)
HutongGames.PlayMakerEditor.VariableManager.DoVariableEditor ()
HutongGames.PlayMakerEditor.VariableManager.OnGUI ()
HutongGames.PlayMakerEditor.InspectorPanel.OnGUI (Rect area)
HutongGames.PlayMakerEditor.FsmEditor.OnGUI ()
FsmEditorWindow.DoGUI () (at Assets/PlayMaker/Editor/FsmEditorWindow.cs:94)
HutongGames.PlayMakerEditor.BaseEditorWindow.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

Any ideas what has caused this or how it can be fixed?
Title: Re: Variable crashes Playmaker - Argument cannot be null
Post by: jeanfabre on July 21, 2014, 08:41:21 AM
Hi,

Can you report a but using the menu "PlayMaker/Tools/Submit Bug Report"? thanks. Then it's going to be easier to track this down, mark as solve etc

 Bye,

 Jean