Derby
  1. Derby
  2. DERBY-5008

[patch] fix npe in error condition

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1, 10.7.1.1
    • Fix Version/s: 10.8.1.2
    • Component/s: Store
    • Labels:
      None
    • Urgency:
      Normal
    • Bug behavior facts:
      Regression

      Description

      LogToFile#switchLogFile: In the cleanup code that handles failure of initLogFile, we see
      code nulls out a variable and then access it: push the nulling down to the end.

      1. fix_log_npe.diff
        0.6 kB
        Dave Brosius

        Activity

        Hide
        Knut Anders Hatlen added a comment -

        Thanks for the fix, Dave. It looks correct to me. Committed revision 1068302.

        Show
        Knut Anders Hatlen added a comment - Thanks for the fix, Dave. It looks correct to me. Committed revision 1068302.
        Hide
        Dag H. Wanvik added a comment -

        Changed category to store, expanded description a bit. Thanks for the patch!

        Show
        Dag H. Wanvik added a comment - Changed category to store, expanded description a bit. Thanks for the patch!

          People

          • Assignee:
            Dave Brosius
            Reporter:
            Dave Brosius
          • Votes:
            0 Vote for this issue
            Watchers:
            0 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

                Development