Repeating Errors While Playing In Editor

I get compile errors.What i want is working but i get all the time error.There is no problem with what i want, it works.But i get these errors while playing.

Blueprint Runtime Error: Accessed None trying to read property CallFunc_BreakHitResult_HitActor1 from function: 'ExecuteUbergraph_TopDownController' from node: Branch in graph: EventGraph in object: TopDownController with description: Accessed None trying to read property CallFunc_BreakHitResult_HitActor1
Blueprint Runtime Error: Accessed None from function: 'ExecuteUbergraph_TopDownController' from node: Branch in graph: EventGraph in object: TopDownController with description: Accessed None
Blueprint Runtime Error: Accessed None trying to read property MouseOn from function: 'ExecuteUbergraph_TopDownController' from node: Set Render Custom Depth in graph: EventGraph in object: TopDownController with description: Accessed None trying to read property MouseOn
Blueprint Runtime Error: Accessed None trying to read property CallFunc_BreakHitResult_HitActor1 from function: 'ExecuteUbergraph_TopDownController' from node: Branch in graph: ForEachLoop in object: TopDownController with description: Accessed None trying to read property CallFunc_BreakHitResult_HitActor1
Blueprint Runtime Error: Accessed None from function: 'ExecuteUbergraph_TopDownController' from node: Branch in graph: ForEachLoop in object: TopDownController with description: Accessed None

Like this.What is the reason can someone help me please ? Thank you very much. :slight_smile:

You’re trying to reference things which can not be found.

It’s hard to say exactly what to fix without seeing the full graph, but you’re making the assumption that there will be Actors returned in the hit event (in your screenshot). This might not occur though so you’re feeding empty (or none) data into various methods which can’t work out what to do, because they were expecting valid data.

I don’t know if OnMouse is one of your variables, but if it is then again, you’re feeding that value into something which is expecting an object (like an actor), but it’s actually None (or NULL)

You should take a look at the IsValid nodes and similar to protect against these errors.

Okey i understand it.Thank you very much :slight_smile: