cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lgaw...@apache.org
Subject svn commit: r164795 - /cocoon/trunk/src/java/org/apache/cocoon/util/log/CocoonLogFormatter.java
Date Tue, 26 Apr 2005 14:23:49 GMT
Author: lgawron
Date: Tue Apr 26 07:23:49 2005
New Revision: 164795

URL: http://svn.apache.org/viewcvs?rev=164795&view=rev
Log:
queryString may be null

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/util/log/CocoonLogFormatter.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/util/log/CocoonLogFormatter.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/util/log/CocoonLogFormatter.java?rev=164795&r1=164794&r2=164795&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/util/log/CocoonLogFormatter.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/util/log/CocoonLogFormatter.java Tue Apr 26 07:23:49
2005
@@ -230,9 +230,13 @@
             final Object context = ctxMap.get("objectModel");
             if (context != null && context instanceof Map) {
                 // Get the request
-                final Request request = ObjectModelHelper.getRequest((Map) context);
+                final Request request = ObjectModelHelper
+                        .getRequest((Map) context);
                 if (request != null) {
-                    return "?" + request.getQueryString();
+                    String queryString = request.getQueryString();
+                    return (queryString != null) 
+                           ? ("?" + request.getQueryString()) 
+                           : "";
                 }
             }
         }



Mime
View raw message