Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: removed consequently sentence

Null pointer dereferencing occurs when a variable bound to the null value is treated as if it were a valid object reference and used without checking its state. Dereferencing a null pointer causes a NullPointerException to be thrown, which interrupts execution of the program or thread. Code conforming to this coding standard will consequently terminate, because ERR08-J. Do not catch NullPointerException or any of its ancestors requires that NullPointerException is not caught.  Consequently, code must never dereference null pointers. 

Noncompliant Code Example

...