hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r160487 - jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HeaderElement.java
Date Thu, 07 Apr 2005 22:54:15 GMT
Author: olegk
Date: Thu Apr  7 15:54:14 2005
New Revision: 160487

URL: http://svn.apache.org/viewcvs?view=rev&rev=160487
Log:
Fixed uninitialized variable which is expected to be non null

Modified:
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HeaderElement.java

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HeaderElement.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HeaderElement.java?view=diff&r1=160486&r2=160487
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HeaderElement.java (original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HeaderElement.java Thu Apr
 7 15:54:14 2005
@@ -143,7 +143,7 @@
                 this.parameters = (NameValuePair[])
                     params.toArray(new NameValuePair[params.size()]);    
             } else {
-                this.parameters = null;
+                this.parameters = new NameValuePair[] {};
             }
         } else {
             this.name = "";



Mime
View raw message