SumoLogic / sumo-log4j-appender

Log4J Appender for Sumo Logic.
11 stars 21 forks source link

NullPointerException in SumoBufferFlushingTask #8

Closed latkin closed 9 years ago

latkin commented 9 years ago

Hit this during some private testing. Fix should be simple null-check, will send PR shortly.

og4j:WARN Exception while attempting to flush and send
java.lang.NullPointerException
    at com.sumologic.log4j.http.SumoBufferFlushingTask.sendOut(SumoBufferFlushingTask.java:90)
    at com.sumologic.log4j.http.SumoBufferFlushingTask.sendOut(SumoBufferFlushingTask.java:37)
    at com.sumologic.log4j.aggregation.BufferFlushingTask.flushAndSend(BufferFlushingTask.java:63)
    at com.sumologic.log4j.aggregation.BufferFlushingTask.run(BufferFlushingTask.java:91)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)