Back to Intellij Community

NullThrown

java/java-impl/resources/inspectionDescriptions/NullThrown.html

2025.3-rc-2189 B
Original Source

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.