This is called validation, and in a validation routine you expect bad invalid data. Check inputs at the trust boundaries, and off you go.
Note this is NOT about just null pointers but about integrity in general.
But if you just want to win an argument: here you go.
This is called validation, and in a validation routine you expect bad invalid data. Check inputs at the trust boundaries, and off you go.
Note this is NOT about just null pointers but about integrity in general.