Pointer Protection

Hi,

in this lecture Michael adds a line of code to protect ourselves from null pointer in the Grab function. But we already are protecting ourselves in the FindPhysicsHandle. Is this second check really necessary?

Yes because the first check isn’t going to stop execution it’s just going to log something. If you didn’t notice that then when you grab you would crash.

1 Like

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

Privacy & Terms