Editor crashes loading the PlayerController

Hello,

So the UE 4.10 editor crashes every time I try to edit a PlayerController blueprint.
It always hits the breakpoint in Actor.cpp:

bool AActor::SetActorTransform(const FTransform& NewTransform, bool bSweep, FHitResult* OutSweepHitResult, ETeleportType Teleport) {
	if (RootComponent) { // crash here
...

Which is weird, as it’s obviously just checking for the nullpointer. Also, the game functions fine, it’s just the editor that crashes. Basically what happens is: I make a PlayerController blueprint, edit it some then plug it into the project preferences and henceforth it just crashes every time I try to edit it, even if I unplug it from the project.

EDIT: found where the problem might be. It only starts crashing after I add a CameraController.

Alright, so it seems you gotta always check for nullpointers in your BP exposed code (also always check for nullpointers in your code not exposed to BP unless you’re 100% sure you won’t get one at some point). I’m guessing the editor does blueprint checks which in my case crashed the editor because the pointer I was using only existed within game, at runtime…