Log4net
  1. Log4net
  2. LOG4NET-379

NullReferenceException in FileAppender when file is not filled.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.11
    • Fix Version/s: 1.2.12
    • Component/s: None
    • Labels:
      None

      Description

      When I create a FileAppender without a filename and I call ActivateOptions(), a NullReferenceException is thrown. This is because the filename is first trimmed before the check whether the filename is null or not.

        Activity

        David Perfors created issue -
        Dominik Psenner made changes -
        Field Original Value New Value
        Assignee Dominik Psenner [ nachbarslumpi ]
        Dominik Psenner made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Dominik Psenner made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        Hide
        Dominik Psenner added a comment -

        Fixed with revision: 1486868

        Show
        Dominik Psenner added a comment - Fixed with revision: 1486868
        Dominik Psenner made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2.12 [ 12318546 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 33m 1 Dominik Psenner 28/May/13 12:15
        In Progress In Progress Open Open
        1m 19s 1 Dominik Psenner 28/May/13 12:16
        Open Open Resolved Resolved
        36s 1 Dominik Psenner 28/May/13 12:17

          People

          • Assignee:
            Dominik Psenner
            Reporter:
            David Perfors
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development