You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2012/03/02 01:00:36 UTC

svn commit: r1296004 - /tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java

Author: rfeng
Date: Fri Mar  2 00:00:36 2012
New Revision: 1296004

URL: http://svn.apache.org/viewvc?rev=1296004&view=rev
Log:
Fix ArrayIndexOutofBound for void return type

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java?rev=1296004&r1=1296003&r2=1296004&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java Fri Mar  2 00:00:36 2012
@@ -141,7 +141,7 @@ public class RESTBindingInvoker implemen
             }
         }
 
-        if (operation.getOutputType() != null) {
+        if (operation.getOutputType() != null && !operation.getOutputType().getLogical().isEmpty()) {
             responseType = operation.getOutputType().getLogical().get(0).getPhysical();
         } else {
             responseType = null;