Reply To: Errors trying to restore blackboard variables (using object pooling)

NodeCanvas Forums Support Errors trying to restore blackboard variables (using object pooling) Reply To: Errors trying to restore blackboard variables (using object pooling)

#16568
Andy Miira
Participant

Hello, Hmm. The setMethod is checked for null for some time now. It may be that you are using an older version? :). Thanks!

I don’t think that’s the case at all, both regarding setMethod being checked for null, and me using an older version of Node Canvas.
As mentioned in a few posts above, I’m using NodeCanvas v3.2.5, the latest version available on Asset Store.

Stepping through with the debugger, setMethod is null here (Variable.cs) line 280: if ( prop.CanWrite ) {
try { setter = setMethod.RTCreateDelegate<Action<T>>(instance); } //JIT
catch { setter = (o) => { setMethod.Invoke(instance, ReflectionTools.SingleTempArgsArray(o)); }; } //AOT
if ( callSetter ) { setter(_value); }
} else {
setter = (o) => { Logger.LogError(string.Format(“You tried to Set a Property Bound Variable ‘{0}’, but the Bound Property ‘{1}’ is Read Only!”, name, _propertyPath), LogTag.VARIABLE, go); };
}

I’m having this exact issue reported by ccfoo242 (setMethod being null in line 280 from Variable.cs), in specific cases like the one from my post above (trying to set a property-bound variable that had “protected set”).