Skip to content
OpenAdvisories

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)
  1. 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

2 results · Clear filters · Feed

  • Critical 9.8

    Mutiple vulnerabilities in the Viridian interface

    [This CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to which CVE.] There are multiple issues related to the handling and accessing of guest memory pages in the viridian code: 1. A NULL pointer dere…

  • Critical 9.8

    Mutiple vulnerabilities in the Viridian interface

    [This CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to which CVE.] There are multiple issues related to the handling and accessing of guest memory pages in the viridian code: 1. A NULL pointer dere…