GitHub user Blindfold opened a pull request:
https://github.com/apache/logging-log4j2/pull/240
Fix LOG4J2-2510 NullPointerException during shutdown
This should fix LOG4J2-2510
NullPointerEception gets thrown while executing shutdown hook in
configuration with RollingRandomAccessFile appender and
DirectWriteRolloverStrategy strategy. It happens when no messages logged during
the session and thus no log file created.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Blindfold/logging-log4j2 master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/240.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #240
----
commit c6ee15c269c986a8c5b66bb9ba87850e4efd3de1
Author: Blindfold <tmainform@...>
Date: 2018-11-16T12:00:44Z
Fix LOG4J2-2510 NullPointerException during shutdown
----
---