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

[patch] fix npe in error condition

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

        1. fix_log_npe.diff
          0.6 kB
          Dave Brosius

          Activity

            People

            • Assignee:
              dbrosius Dave Brosius
              Reporter:
              dbrosius@apache.org 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