CWE-395
Overview
- CWE ID
- 395
- CWE Name
- Use of NullPointerException Catch to Detect NULL Pointer Dereference
- CWE Abstraction
- Base
- CWE structure
- Simple
- CWE Status
- Draft
Description
Catching NullPointerException should not be used as an alternative to programmatic checks to prevent dereferencing a null pointer.