axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r643585 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/InvocationHelper.java
Date Tue, 01 Apr 2008 21:29:24 GMT
Author: rott
Date: Tue Apr  1 14:29:23 2008
New Revision: 643585

URL: http://svn.apache.org/viewvc?rev=643585&view=rev
Log:
AXIS2-3666 followup:  more careful NPE prevention, just in case

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/InvocationHelper.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/InvocationHelper.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/InvocationHelper.java?rev=643585&r1=643584&r2=643585&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/InvocationHelper.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/InvocationHelper.java
Tue Apr  1 14:29:23 2008
@@ -107,6 +107,10 @@
      */
     public static Throwable determineMappedException(Throwable t, MessageContext context)
{
         EndpointInvocationContext eic = (EndpointInvocationContext)context.getInvocationContext();
+        if (eic == null) {
+            eic = new EndpointInvocationContextImpl();
+            eic.setRequestMessageContext(context);
+        }
         eic.setInvocationListeners((List<InvocationListener>)context.getProperty(org.apache.axis2.jaxws.spi.Constants.INVOCATION_LISTENER_LIST));
         return determineMappedException(t, eic);
     }



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