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 ]
        Dominik Psenner made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2.12 [ 12318546 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development