Set Material Node

Dear,
I having a problem that appear only after I close my project and for the time being it does not make any trouble for me. At least for now.

the problem comes from the SetMaterial Node and here is the message:

“Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_AddComponent_ReturnValue23 from function: ‘ExecuteUbergraph_Bp_Board’ from node: Set Material in graph: EventGraph in object: Bp_Board with description: Accessed None trying to read property CallFunc_AddComponent_ReturnValue23”

This SetMaterial Node is assigning material for 4 AddStaticMeshComponent Nodes.

What is wonder me is that I have about 20 SetMaterial Nodes but non of them behave like that node. Any Idea?

Best Regards

Hi shafeeq,

That error is usually caused by the need to have a IsValid check somewhere. Try adding an IsValid node inbetween the AddStaticMeshComponent and the Insert node.

Let me know if that helps.

Cheers,

TJ