How to use AttachToComponent

Hi there, When I was trying use AttachToComponent, attach Actor to another Actor, I got a mistake:


How did this happen? Thank you.

Some of the pointers used in this line is NULL, add checks before it to figure out which.