You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by th...@apache.org on 2006/12/30 09:30:11 UTC
svn commit: r491193 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java
Author: thilina
Date: Sat Dec 30 00:30:10 2006
New Revision: 491193
URL: http://svn.apache.org/viewvc?view=rev&rev=491193
Log:
Handling the possible NPE
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java?view=diff&rev=491193&r1=491192&r2=491193
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java Sat Dec 30 00:30:10 2006
@@ -131,6 +131,10 @@
{
builder = Builder.getBuilderFromSelector(contentType, inStream, msgContext);
}
+ if (builder==null)
+ {
+ throw new AxisFault("Cannot find a matching builder for the message. Unsupported Content Type.");
+ }
documentElement = builder.getDocumentElement();
SOAPEnvelope envelope;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org