UE4 crashes when PhysicsHandle is missing now

Before in one lecture we tested it out if our if statement is triggered:

if (physicsHandle == nullptr)
UE_LOG(LogTemp, Error, TEXT(“PhycsicsHandle Component could’nt be found, attach it to this object: %s”), *(GetOwner()->GetName()));

I tested it also and it logged correctly the Log out. But now it doesn’t work and if i start the game, the game crashes. Im assuming it’s because were checking

if (PhysicsHandle->GrabbedCompont)

every tick now.
How to fix this?

Okay fixed, this problem is covered in the lecture 93.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms