National Institute of Standards and Technology
Package illustrating a test case

Test case 54554

Deprecated test case

This version contains mistakes, making it deprecated. Deprecated test cases should not be used for new work. However, They remain in the SARD as a reference to redo previous work.

Description

CWE: 395 An object may be null when asked to perform a method; a catch block for NullPointerException is used instead of checking for null objects in the code
Sinks:
GoodSink: check for null reference before taking action
BadSink : using catch to detect null references
Flow Variant: 01 Baseline

Flaws

Test Suites

Documentation

Have any comments on this test case? Please, send us an email.