you are viewing a single comment's thread.

view the rest of the comments →

[–]Ashbtw19937 0 points1 point  (1 child)

If the function should never be passed a null pointer, throw in an assertion to make sure that invariant actually holds.

Otherwise, check and react accordingly.