Github user cakofony commented on a diff in the pull request:

    https://github.com/apache/logging-log4j2/pull/240#discussion_r234197166
  
    --- Diff: 
log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingRandomAccessFileManager.java
 ---
    @@ -156,7 +156,9 @@ public synchronized boolean closeOutputStream() {
             flush();
             if (randomAccessFile != null) {
                 try {
    -                randomAccessFile.close();
    +                if (randomAccessFile != null) {
    +                    randomAccessFile.close();
    +                }
    --- End diff --
    
    No worries, thank you for taking the time to submit a change upstream!


---

Reply via email to