Title: EXP01-J. Do not use a null in a case where an object is required  
Author: Dhruv Mohindra May 12, 2009
Last Changed by: Winfried Gerlach Jan 25, 2022
Tiny Link: (useful for email) https://wiki.sei.cmu.edu/confluence/x/aDdGBQ
Export As: Word · PDF  
Hierarchy
Parent Page
    Page: Rule 02. Expressions (EXP)
Outgoing Links
External Links (19)
    https://www.safaribooksonline.com/library/view/secure-codin…
    www.aitcnet.org/isai/
    cwe.mitre.org/data/definitions/476.html
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://pvs-studio.com/en/docs/warnings/v6008/
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    docs.oracle.com/javase/8/docs/api/java/util/Optional.html
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    www.oracle.com/technetwork/articles/java/java8-optional-217…
    https://rules.sonarsource.com/java/RSPEC-2637
    https://wiki.sei.cmu.edu/confluence/display/java/PVS-Studio
    java.sun.com/javase/6/docs/api/java/security/AccessControll…
    cwe.mitre.org/
    bugs.sun.com/bugdatabase/view_bug.do?bug_id=6514454
    https://rules.sonarsource.com/java/RSPEC-2447
    https://rules.sonarsource.com/java/RSPEC-2259
    https://pvs-studio.com/en/docs/warnings/v6073/
    https://rules.sonarsource.com/java/RSPEC-2225
    https://pvs-studio.com/en/docs/warnings/v6093/
SEI CERT C Coding Standard (2)     Page: EXP34-C. Do not dereference null pointers
    Home page: SEI CERT C Coding Standard
SEI CERT Oracle Coding Standard for Java (20)     Page: Coverity
    Page: CodeSonar
    Page: SpotBugs_V
    Page: Fortify_V
    Page: Rule BB. Glossary
    Page: Fortify
    Page: SonarQube_V
    Home page: SEI CERT Oracle Coding Standard for Java
    Page: Rule AA. References
    Page: The Checker Framework
    Page: Findbugs
    Page: SonarQube
    Page: ERR08-J. Do not catch NullPointerException or any of its ancestors
    Page: The Checker Framework_V
    Page: Parasoft
    Page: Findbugs_V
    Page: CodeSonar_V
    Page: Parasoft_V
    Page: PVS-Studio_V
    Page: SpotBugs