axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamik...@apache.org
Subject svn commit: r452874 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java
Date Wed, 04 Oct 2006 12:37:41 GMT
Author: chamikara
Date: Wed Oct  4 05:37:40 2006
New Revision: 452874

URL: http://svn.apache.org/viewvc?view=rev&rev=452874
Log:
To avoid a possible NullPointerException.


Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java?view=diff&rev=452874&r1=452873&r2=452874
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/SOAPUtil.java
Wed Oct  4 05:37:40 2006
@@ -61,12 +61,12 @@
                                                       soapAction,
                                                       request.getRequestURL().toString());
 
-            Object contextWritten =
-                    msgContext.getOperationContext().getProperty(Constants.RESPONSE_WRITTEN);
+            Object contextWritten = null;
+            if (msgContext.getOperationContext()!=null)
+            	contextWritten = msgContext.getOperationContext().getProperty(Constants.RESPONSE_WRITTEN);
 
             response.setContentType("text/xml; charset="
                                     + msgContext.getProperty(Constants.Configuration.CHARACTER_SET_ENCODING));
-
 
             if ((contextWritten == null) || !Constants.VALUE_TRUE.equals(contextWritten))
{
                 response.setStatus(HttpServletResponse.SC_ACCEPTED);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message