Skip to content

Commit

Permalink
LOG4J2-2760: Fixes NPE in RollingFileManager
Browse files Browse the repository at this point in the history
that occurs when append=false and a DirectWriteRolloverStrategy is used
  • Loading branch information
ChristophKaser committed Jan 16, 2020
1 parent d94a029 commit 0f88bae
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -96,7 +96,7 @@ protected RollingFileManager(final LoggerContext loggerContext, final String fil
final String filePermissions, final String fileOwner, final String fileGroup,
final boolean writeHeader, final ByteBuffer buffer) {
super(loggerContext, fileName != null ? fileName : pattern, os, append, false, createOnDemand,
advertiseURI, layout, filePermissions, fileOwner, fileGroup, writeHeader, buffer);
advertiseURI, layout, filePermissions, fileOwner, fileGroup, false, buffer);
this.size = size;
this.initialTime = initialTime;
this.triggeringPolicy = triggeringPolicy;
Expand Down

0 comments on commit 0f88bae

Please sign in to comment.