Fixing Accessed None Error 4.18

(Using 4.18) After reaching the end of this lecture, I was getting an “accessed none” error from the IsWithinRange decorator.


PIE: Error: Blueprint Runtime Error: Accessed None trying to read property CallFunc_GetBlackboardValueAsActor_ReturnValue from function: ‘PerformConditionCheckAI’ from node: Return Node in graph: PerformConditionCheckAI in object: IsWithinRange with description: Accessed None trying to read property CallFunc_GetBlackboardValueAsActor_ReturnValue


I am not sure if this is the best fix but after adding a valid check with the blackboard value I was able to stop the error from happening (see image).

2 Likes

The issue was that target non-existed when node was called. Actually doing it your way hides the issue, unless target CAN be empty and it is proper behaviour. If target MUST be set all times leaving is without IsValid is better.

Privacy & Terms