From 3cedfe55730f26c56ca06ade6b1d6cc30206cb19 Mon Sep 17 00:00:00 2001 From: fhanik Date: Mon, 14 Sep 2009 20:48:12 +0000 Subject: [PATCH] check for return from the queue git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814841 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/juli/AsyncFileHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.11.0