Inspectopedia
 
2024.3

'null' thrown

Warning
New
Last modified: 03 December 2024

Reports null literals that are used as the argument of a throw statement.

Such constructs produce a java.lang.NullPointerException that usually should not be thrown programmatically.