You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fs...@apache.org on 2015/09/20 17:15:13 UTC

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

Author: fschumacher
Date: Sun Sep 20 15:15:02 2015
New Revision: 1704149

URL: http://svn.apache.org/viewvc?rev=1704149&view=rev
Log:
record can't be null here, since it has been dereferenced before in isLoggable.

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=1704149&r1=1704148&r2=1704149&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java (original)
+++ tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java Sun Sep 20 15:15:02 2015
@@ -99,11 +99,9 @@ public class AsyncFileHandler extends Fi
         if (!isLoggable(record)) {
             return;
         }
-        if (record != null) {
-            // fill source entries, before we hand the record over to another
-            // thread with another class loader
-            record.getSourceMethodName();
-        }
+        // fill source entries, before we hand the record over to another
+        // thread with another class loader
+        record.getSourceMethodName();
         LogEntry entry = new LogEntry(record,this);
         boolean added = false;
         try {



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