ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r382524 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
Date Thu, 02 Mar 2006 21:53:15 GMT
Author: dims
Date: Thu Mar  2 13:53:14 2006
New Revision: 382524

URL: http://svn.apache.org/viewcvs?rev=382524&view=rev
Log:
prevent NPE

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java?rev=382524&r1=382523&r2=382524&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
Thu Mar  2 13:53:14 2006
@@ -203,8 +203,10 @@
                                 header.getValue());
                     }
                 } else if (charsetEnc != null) {
-                    opContext.setProperty(MessageContext.CHARACTER_SET_ENCODING,
-                            charsetEnc.getValue());    // change to the value, which is text/xml
or application/xml+soap
+                    if (opContext != null) {
+                        opContext.setProperty(MessageContext.CHARACTER_SET_ENCODING,
+                                charsetEnc.getValue());    // change to the value, which
is text/xml or application/xml+soap
+                    }
                 }
             }
         }



Mime
View raw message