diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2012-03-02 00:00:36 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2012-03-02 00:00:36 +0000 |
commit | 32d377bee8b46b9db2b2edee9060b37feca99e33 (patch) | |
tree | 441997227e8ff37b713ec9bd935788f5410889d8 /sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache | |
parent | de5d93e16bd9869698195dbd259feb91f602e97a (diff) |
Fix ArrayIndexOutofBound for void return type
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1296004 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java index 01c4e28df6..e5de008fa5 100644 --- a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java +++ b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java @@ -141,7 +141,7 @@ public class RESTBindingInvoker implements Invoker { } } - if (operation.getOutputType() != null) { + if (operation.getOutputType() != null && !operation.getOutputType().getLogical().isEmpty()) { responseType = operation.getOutputType().getLogical().get(0).getPhysical(); } else { responseType = null; |