Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Catching NullPointerException may mask an underlying null dereference, degrade application performance, and result in code that is hard to understand and maintain. Likewise, catching RuntimeException, Exception, or Throwable may unintentionally trap other exception types and prevent them from being handled properly.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

ERR08-J

Medium

Likely

Medium

P12

L1

Automated Detection

ToolVersionCheckerDescription
CodeSonar
Include Page
CodeSonar_V
CodeSonar_V
PMD.Strict-Exceptions.AvoidCatchingThrowableAvoid catching Throwable
Parasoft Jtest
Include Page
Parasoft_V
Parasoft_V
EXCEPT.NCNPEImplemented
SonarQube
Include Page
SonarQube_V
SonarQube_V

S1181

,

S1696

 

...


...