diff --git a/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java b/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java index 01c4e28df6..e5de008fa5 100644 --- a/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java +++ b/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java @@ -141,7 +141,7 @@ public Set getSingletons() { } } - if (operation.getOutputType() != null) { + if (operation.getOutputType() != null && !operation.getOutputType().getLogical().isEmpty()) { responseType = operation.getOutputType().getLogical().get(0).getPhysical(); } else { responseType = null;