Alright so now I use
this->DoorComponent = (AADoor*)GetWorld()->SpawnActor(AADoor::StaticClass());
That causes no more crashes. However, I get 2 doors spawned. One when I drag the AAutomatedDoorFramework in the editor, and one when I release the mouse button. I end up with 1 AutomatedDoorFramework and 2 Doors. What could cause this ?