If statement here for null pointer seems crucial

I got stuck here trying all sorts , but to no avail without the if() statement checking for null pointer.
That aside I think this lesson is really tough.

Privacy & Terms