tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kin-Man Chung <Kin-Man.Ch...@Eng.Sun.COM>
Subject [PATCH] TC4.0 "null" JasperException
Date Mon, 24 Sep 2001 19:35:34 GMT
Fixes #3617.  Patch supplied by mak-apache-bugzilla@greenhills.co.uk             
(Martijn Koster)

Index: Compiler.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/C
ompiler.java,v
retrieving revision 1.12
diff -u -r1.12 Compiler.java
--- Compiler.java       2001/09/15 23:47:17     1.12
+++ Compiler.java       2001/09/18 15:40:36
@@ -324,11 +324,12 @@
 
             // Now do the mapping
             String mapping = findMapping(map, lineNr);
-            if (mapping != null) {
-                errorMsg.append(findMapping(map, lineNr));
-                errorMsg.append(line);
+            if (mapping == null)
                 errorMsg.append('\n');
-            }
+            else
+                errorMsg.append(mapping);
+            errorMsg.append(line);
+            errorMsg.append('\n');
         }
         br.close();
         map.clear();


Mime
View raw message