You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2009/09/14 22:48:13 UTC

svn commit: r814841 - /tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java

Author: fhanik
Date: Mon Sep 14 20:48:12 2009
New Revision: 814841

URL: http://svn.apache.org/viewvc?rev=814841&view=rev
Log:
check for return from the queue

Modified:
    tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java

Modified: tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java?rev=814841&r1=814840&r2=814841&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java (original)
+++ tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java Mon Sep 14 20:48:12 2009
@@ -124,7 +124,7 @@
             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) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org