4 ms·
It's staggering how many of these are NullPointerExceptions. Java needs nullable types.
by quarterto 14y ago
It's staggering how many of these are NullPointerExceptions. Java needs nullable types.
- weakwire 14y ago+1
- j4_james 14y agoI 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.