An "Accessed None" error during Simulate Level only

Hello! I’m having a problem that only occurs when I run Simulate Level. If i run the project through the Play in Editor, then everything is fine. The mistake Blueprint Runtime Error: “Accessed None trying to read (real) property K2Node_DynamicCast_AsPrimitive_Component in not an UClass” appears only in two blueprints on the branch node, although the same logic is written in several other blueprints…



and as far as I understand it’s related to this place

where I’m trying to get a character’s sphere collider. I do this through the interface and through a function inside the character.


Is it possible that this is due to the fact that the default value is empty?

But if so, why does the same logic work in other blueprints, but the error occurs in only two of them? And is this a problem at all if no errors appear during play in editor?

Try click on blueprint node and press f9 to blueprint debugger, or try make is valid check on all components

1 Like

Instead of the stupid logic that I did, you just need to use does implement interface.


Or directly through the interface. But I do not know if there is a difference in these two methods.

2 Likes

Good