Engine Crashing on if Statements??

Did you try

if (LockedOnActor)