[4.7.6] Player controller tick event fires in editor

This is still present in 4.15.1(git) and causes a crash when I try to open up my PlayerController BP which is based on a custom PlayerController C++ class.

  auto AimingComponent = GetPawn()->FindComponentByClass<UTankAimingComponent>();
  if(!ensure(AimingComponent)) {return;}

UTankAimingComponent is a custom c++ component. According to gdb the “auto AimingCoponent…” line causes crash.

I am trying this in my PlayerController class Tick() function.

  Super::Tick(DeltaTime);
  if (GetWorld()->WorldType == EWorldType::EditorPreview) { return; }

I will let you know if this is an acceptable workaround of if I notice any issues.