tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject 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
Date Fri, 02 Mar 2012 00:00:36 GMT
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;



Mime
View raw message