db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DERBY-5285) [patch] avoid npe if tempCongloms is null
Date Sun, 19 Jun 2011 07:45:47 GMT
[patch] avoid npe if tempCongloms is null

                 Key: DERBY-5285
                 URL: https://issues.apache.org/jira/browse/DERBY-5285
             Project: Derby
          Issue Type: Improvement
          Components: Store
    Affects Versions:
            Reporter: Dave Brosius
            Priority: Trivial
             Fix For:

if (tempCongloms != null)
	tempCongloms.remove(new Long(conglomId));
tempCongloms.put(new Long(conglomId), conglom);

code guards against tempCongloms being null for the remove, but not for the put. so put the
put in the if statement.
Then realized that the remove is superfluous, as the put will overright so just removed the

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message