Weakness (CWE)
CWE-395: Use of NullPointerException Catch to Detect NULL Pointer Dereference
Variant Draft
Catching NullPointerException should not be used as an alternative to programmatic checks to prevent dereferencing a null pointer.
How to prevent it (1 mitigation)
-
Architecture and Design, Implementation
Do not extensively rely on catching exceptions (especially for validating user input) to handle errors. Handling exceptions can decrease the performance of an application.
Source: MITRE CWE-395
0 results · Clear filters · Feed
Nothing found.