ArgumentNullException

NodeCanvas Forums Support ArgumentNullException

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9831

    I’m trying to create and bind a blackboard property. I have a view called GuardView which has this

    public bool HeroVisible { get; private set; }

    Once I add a bool blackboard property and bind it to this HeroVisible property and try to run the project, I get this:

    ArgumentNullException: Argument cannot be null.
    Parameter name: method
    System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/Delegate.cs:173)
    System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/Delegate.cs:276)
    NodeCanvas.NCReflection.NCCreateDelegate (System.Reflection.MethodInfo method, System.Type type, System.Object instance) (at Assets/NodeCanvas/Core/Other/NCReflection.cs:252)
    NodeCanvas.NCReflection.NCCreateDelegate[Action1] (System.Reflection.MethodInfo method, System.Object instance) (at Assets/NodeCanvas/Core/Other/NCReflection.cs:245)
    NodeCanvas.Variables.VariableData
    1[System.Boolean].InitBinding (UnityEngine.GameObject go) (at Assets/NodeCanvas/Core/Blackboard/VariableData.cs:121)
    NodeCanvas.Blackboard.Awake () (at Assets/NodeCanvas/Core/Blackboard/Blackboard.cs:137)

    For now I’m using ScriptControl->CheckProperty instead of BlackBoard->CheckBoolean as a workaround.

    Am I missing something?

    #9832
    Gavalakis
    Keymaster

    Hello,

    I wasn’t checking for whether or not the accessor is private. Here is the fix.

    Please replace VariableData.cs InitBinding method at line #111 with the following:

    Cheers!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.