From: fhanik Date: Mon, 14 Sep 2009 20:48:12 +0000 (+0000) Subject: check for return from the queue X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3cedfe55730f26c56ca06ade6b1d6cc30206cb19;p=tomcat7.0 check for return from the queue git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814841 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/juli/AsyncFileHandler.java b/java/org/apache/juli/AsyncFileHandler.java index ece00e9a0..026112fa1 100644 --- a/java/org/apache/juli/AsyncFileHandler.java +++ b/java/org/apache/juli/AsyncFileHandler.java @@ -124,7 +124,7 @@ public class AsyncFileHandler extends FileHandler { while (run) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); - entry.flush(); + if (entry!=null) entry.flush(); }catch (InterruptedException x) { Thread.interrupted(); }catch (Exception x) {