Component being set to null after change

thank you for replying.

UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
class GAMEPROTOTYPE_API USkillCastingComponent : public UActorComponent

and in the character class:

	/** Skill Casting Component */
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Custom, meta = (AllowPrivateAccess = "true"))
	class USkillCastingComponent* SkillCastinggComponent;