You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cr...@apache.org on 2002/11/14 19:01:01 UTC
cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpRequest.java
crafterm 2002/11/14 10:01:01
Modified: src/java/org/apache/cocoon/environment/http HttpRequest.java
Log:
Applied NPE fix thrown from inside in o.a.c.environment.http.HttpRequest.
PR: Bugzilla #14245
Supplied by: Ivan Mikushin <iv...@openmechanics.net>
Revision Changes Path
1.10 +3 -1 xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpRequest.java
Index: HttpRequest.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpRequest.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- HttpRequest.java 29 Oct 2002 04:49:52 -0000 1.9
+++ HttpRequest.java 14 Nov 2002 18:01:01 -0000 1.10
@@ -297,6 +297,7 @@
}
private String decode(String str) {
+ if (str == null) return null;
try {
if (this.container_encoding == null)
this.container_encoding = "ISO-8859-1";
@@ -314,6 +315,7 @@
public String[] getParameterValues(String name) {
String[] values = this.req.getParameterValues(name);
+ if (values == null) return null;
if (this.form_encoding == null) {
return values;
}
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org