commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M Kim (JIRA)" <>
Subject [jira] [Created] (COLLECTIONS-555) Undefined NullPointerException in
Date Mon, 16 Feb 2015 17:04:13 GMT
M Kim created COLLECTIONS-555:

             Summary: Undefined NullPointerException in
                 Key: COLLECTIONS-555
             Project: Commons Collections
          Issue Type: Bug
          Components: Bag
    Affects Versions: 4.1
            Reporter: M Kim
            Priority: Minor

In add(final E object) method of, the parameter object is not null-checked in
throw IlligalArgumentException statement. Thus, it crashes with an inappropriate type of exceptions
when the parameter, object is null. object can be null from the argument, transform(object)
in TransformedCollection.add(final E object).
I think object ==null should be added in the predicate of the throw IlligalArgumentException

This message was sent by Atlassian JIRA

View raw message