Why does the engine crash when adding to an array ?

The getter declaration looks like this:


TArray<UStaffMember*>& GetStaffList() { return StaffList; }