You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ro...@apache.org on 2008/04/01 23:29:24 UTC
svn commit: r643585 -
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/InvocationHelper.java
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