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

        Dave Brosius created issue -
        Dave Brosius made changes -
        Field Original Value New Value
        Attachment fix_log_npe.diff [ 12470541 ]
        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.
        Knut Anders Hatlen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Issue & fix info [Patch Available]
        Assignee Dave Brosius [ dbrosius ]
        Resolution Fixed [ 1 ]
        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!
        Dag H. Wanvik made changes -
        Description code nulls out a variable and then access it, push the nulling down to the end. 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.
        Component/s Store [ 11412 ]
        Component/s Miscellaneous [ 11400 ]
        Dag H. Wanvik made changes -
        Affects Version/s 10.6.2.1 [ 12315343 ]
        Affects Version/s 10.6.1.0 [ 12313727 ]
        Affects Version/s 10.5.3.0 [ 12314117 ]
        Affects Version/s 10.5.2.0 [ 12314116 ]
        Affects Version/s 10.5.1.1 [ 12313771 ]
        Affects Version/s 10.4.2.0 [ 12313345 ]
        Affects Version/s 10.4.1.3 [ 12313111 ]
        Affects Version/s 10.3.3.0 [ 12313142 ]
        Affects Version/s 10.3.2.1 [ 12312876 ]
        Affects Version/s 10.3.1.4 [ 12312590 ]
        Affects Version/s 10.2.2.0 [ 12312027 ]
        Affects Version/s 10.2.1.6 [ 11187 ]
        Affects Version/s 10.1.3.1 [ 12311953 ]
        Affects Version/s 10.1.2.1 [ 12310615 ]
        Affects Version/s 10.1.1.0 [ 10993 ]
        Affects Version/s 10.0.2.1 [ 10991 ]
        Affects Version/s 10.0.2.0 [ 10920 ]
        Dave Brosius made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Bug behavior facts [Regression]
        Rick Hillegas made changes -
        Fix Version/s 10.8.1.1 [ 12316356 ]
        Fix Version/s 10.8.1.0 [ 12315561 ]
        Rick Hillegas made changes -
        Fix Version/s 10.8.1.2 [ 12316362 ]
        Fix Version/s 10.8.1.1 [ 12316356 ]
        Gavin made changes -
        Workflow jira [ 12544850 ] Default workflow, editable Closed status [ 12797743 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        4h 45m 1 Knut Anders Hatlen 08/Feb/11 09:37
        Resolved Resolved Closed Closed
        11d 3h 27m 1 Dave Brosius 19/Feb/11 13:04

          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