Can not get skeletal mesh to load when loading thru a class being dropped into the editor. SOLVED

Some reason i can not get second line to load and it crashes the editor. If i take and drop just the model in. It loads fine in editor. just in this code will it not load, what am i doing wrong?
This is being loaded in the constructor.


static ConstructorHelpers::FObjectFinder<USkeletalMesh> StartGate(TEXT("/Game/Geometry/Gates/StartGate_SkelMesh"));
GetStartMesh()->SetSkeletalMesh(StartGate.Object);

Had to remove these lines completely. Then add the class to the map then in details panel then clicked add component as in a skeletal mesh. Then i could add the model and it showed up and worked. So that code is a waste of time to add. It just crashes your game.