Selecting an Actor with a Camera and a C++ inherited Blueprint Component that has sub-components,then compiling the BP component leads to a crash.
Upon Debugging the Crash Call Stack:
FindViewComponentForActor, all components of the actor get examined for a camera component. Every component gets accessed with a pointer. It is assumed that "GetComponents" returns only valid components. However, when the crash occurs, an additional, invalid nullptr component exists in the list of components. This nullptr component gets accessed too, therefore the engine crashes.
Project has been attached for easier repro steps.
Result: Unhandled Exception: Please see Call Stack Below.
Expected: No Unhandled Exception Crash.
There's no existing public thread on this issue, so head over toAnswerHub just mention UE-74765 in the post.