Author: boisvert
Date: Tue Feb 27 08:29:39 2007
New Revision: 512308

URL: http://svn.apache.org/viewvc?view=rev&rev=512308
Log:
Better error reporting if JBI mex operation is null

Modified:
    incubator/ode/trunk/jbi/src/main/java/org/apache/ode/jbi/OdeService.java

Modified: 
incubator/ode/trunk/jbi/src/main/java/org/apache/ode/jbi/OdeService.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/jbi/src/main/java/org/apache/ode/jbi/OdeService.java?view=diff&rev=512308&r1=512307&r2=512308
==============================================================================
--- incubator/ode/trunk/jbi/src/main/java/org/apache/ode/jbi/OdeService.java 
(original)
+++ incubator/ode/trunk/jbi/src/main/java/org/apache/ode/jbi/OdeService.java 
Tue Feb 27 08:29:39 2007
@@ -117,6 +117,11 @@
             return;
         }
 
+        if (jbiMex.getOperation() == null) {
+            throw new IllegalArgumentException("Null operation in JBI message 
exchange id=" + jbiMex.getExchangeId()
+                                                + " endpoint=" + _endpoint);
+        }
+
         if 
(jbiMex.getPattern().equals(org.apache.ode.jbi.MessageExchangePattern.IN_ONLY)) 
{
             boolean success = false;
             Exception err = null;


Reply via email to