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

[patch] fix npe in error condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 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
    • 10.8.1.2
    • Store
    • None
    • Normal
    • 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

            dbrosius David Brosius
            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