Author: vgritsenko Date: Wed May 4 14:01:56 2005 New Revision: 168190 URL: http://svn.apache.org/viewcvs?rev=168190&view=rev Log: don't print "?null" in the log
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=168190&r1=168189&r2=168190&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 Wed May 4 14:01:56 2005 @@ -233,10 +233,10 @@ final Request request = ObjectModelHelper .getRequest((Map) context); if (request != null) { - String queryString = request.getQueryString(); - return (queryString != null) - ? ("?" + request.getQueryString()) - : ""; + final String queryString = request.getQueryString(); + if (queryString != null) { + return "?" + queryString; + } } } }