Editor Keeps crashing cause of code

it stops it from crashing but doesnt do want i wat it to do.And SpotLightPicker is a UPROPERTY.
But got the code to work just did a new function OnConstruction. Works now :smiley:
cpp:

void AVLDVisual::OnConstruction(const FTransform & Transform)
{

    FloatMath_ScaleAndSphere = RadiusScale * DefaultSphereRadius;

	SphereComponent->SetSphereRadius(FloatMath_ScaleAndSphere);

	SphereComponent->SetWorldLocation(SpotLightPicker->GetRootComponent()->GetComponentLocation());
}