@Holger Not that different; I treat
null
the same way SQL treats it (unknown value), i.e. I want the NPEs. More NPEs more better. Then I know what to fix. I shoot down
if (x == null || x.isEmpty())
all the time in code review. However, Someone asked an SO question. That is rarely the right time to start tossing personal taste around, and in the rare case that it is - objective reasoning needs to be supplied. —
rzwitserloot 25 secs ago