There are a number of places where thrown is retrieved from the test and then thrown.getMessage() is called. These places should first check for thrown == null to avoid a possible NullPointerException; these cases will result in a test error but should instead result in a failure.
There are a number of places where
thrown
is retrieved from the test and thenthrown.getMessage()
is called. These places should first check forthrown == null
to avoid a possibleNullPointerException
; these cases will result in a test error but should instead result in a failure.