Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
The fix for this actually quite easy, we would only need to define the "belowness" of null pointers (also in the docu). One way to define it, would be to always return false (0) if any null pointer is involved (so simply not distinguish API errors and below checks, i.e., map -1 to 0).
What do you think?