Crash in APawn::IsBasedOnActor

Steps to reproduce:

  • Create a C++ class based on ACharacter
  • Create a C++ class based on UActorComponent and add it as a default subobject to the character class
  • set bReplicates to true in the constructor of the component
  • Replicate the component via the ReplicateSubobjects function on the character class

A null reference occurs in the APawn::IsBasedOnActor function

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks