Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5285

[patch] avoid npe if tempCongloms is null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 10.8.2.2
    • 10.10.1.1
    • Store
    • None
    • Low

    Description

      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 remove.

      Attachments

        1. npe_guard.diff
          0.6 kB
          Dave Brosius

        Issue Links

          Activity

            People

              mikem Mike Matrigali
              dbrosius@apache.org Dave Brosius
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified