Hacker News new | ask | show | jobs
by quarterto 4812 days ago
It's staggering how many of these are NullPointerExceptions. Java needs nullable types.
2 comments

I would have thought this is just because Java forces you to catch most exceptions. It's only the RuntimeException subclasses (which includes NullPointerException) that are unchecked. And a good deal of those are quite obscure. I really wouldn't expect to see many occurrences of FileSystemAlreadyExistsException or MalformedParameterizedTypeException.

There are also the Error classes (including OutOfMemoryError) that wouldn't automatically be caught, but there aren't many likely candidates there either.

+1