axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r562651 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Date Sat, 04 Aug 2007 03:43:01 GMT
Author: dims
Date: Fri Aug  3 20:43:00 2007
New Revision: 562651

URL: http://svn.apache.org/viewvc?view=rev&rev=562651
Log:
trying to fix possible cause of NPE reported in AXIS2-2352

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

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java?view=diff&rev=562651&r1=562650&r2=562651
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Fri Aug  3 20:43:00 2007
@@ -168,11 +168,14 @@
                                 (AxisBindingOperation) msgContext
                                         .getProperty(Constants.AXIS_BINDING_OPERATION);
                         if (axisBindingOperation != null) {
-                            Integer code = (Integer) axisBindingOperation.getFault(
-                                    (String) msgContext.getProperty(Constants.FAULT_NAME))
-                                    .getProperty(WSDL2Constants.ATTR_WHTTP_CODE);
-                            if (code != null) {
-                                response.setStatus(code.intValue());
+                            AxisBindingMessage axisBindingMessage = axisBindingOperation.getFault(
+                                    (String) msgContext.getProperty(Constants.FAULT_NAME));
+                            if(axisBindingMessage != null){
+                                Integer code = (Integer) axisBindingMessage
+                                        .getProperty(WSDL2Constants.ATTR_WHTTP_CODE);
+                                if (code != null) {
+                                    response.setStatus(code.intValue());
+                                }
                             }
                         }
                     }



---------------------------------------------------------------------
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