axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ngalla...@apache.org
Subject svn commit: r438784 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java
Date Thu, 31 Aug 2006 04:31:02 GMT
Author: ngallardo
Date: Wed Aug 30 21:31:02 2006
New Revision: 438784

URL: http://svn.apache.org/viewvc?rev=438784&view=rev
Log:
Fixed issue where the ProviderDispatcher would blow up if the response was null.

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

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java?rev=438784&r1=438783&r2=438784&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java
Wed Aug 30 21:31:02 2006
@@ -176,16 +176,15 @@
                     value.getClass().getName());
         }
         
-        BlockFactory factory = createBlockFactory(providerType);
         MessageFactory msgFactory = (MessageFactory) FactoryRegistry.getFactory(
                 MessageFactory.class);
-        
         Message message = msgFactory.create(messageProtocol);
-            
-        // Since we know this isn't going to be a JAX-B block, it's ok if
-        // the context is null.  The QName can be null for now as well.
-        Block block = factory.createFrom(value, null, null);
-        message.setBodyBlock(0, block);
+        
+        if (value != null) {
+            BlockFactory factory = createBlockFactory(providerType);
+            Block block = factory.createFrom(value, null, null);
+            message.setBodyBlock(0, block);
+        }
 
         return message;
     }



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