[ 
https://issues.apache.org/jira/browse/LOG4J2-1740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15750920#comment-15750920
 ] 

Gary Gregory commented on LOG4J2-1740:
--------------------------------------

Can you please add a stack trace to your description?

> Add CronTriggeringPolicy programmatically leads to NPE
> ------------------------------------------------------
>
>                 Key: LOG4J2-1740
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1740
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.7
>            Reporter: Peter Nimmervoll
>
> When i try to add a RollingFileAppender with a CronTriggeringPolicy 
> programmatically then I get a NPE because the ScheduledExecutorService in 
> ConfigurationScheduler is null. IMO the ScheduledExecutorService should 
> always be created even when there are no items which needs to be scheduled.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to