It seems like your object variables are not valid. You will need to reference the variables first before using it. It applies to all object/actor class variables. This is one of the rules of programming, otherwise you will get invalid object variables.