Skip to content

Commit b996953

Browse files
Merge pull request #98 from ipamaas/development
Fix response object map to be used as invocation response in async operation
2 parents 527a964 + 14878b7 commit b996953

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/eclipse/basyx/submodel/metamodel/connected/submodelelement/operation/ConnectedAsyncInvocation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ private void retrieveResultDirectly() {
127127
InvocationResponse response = null;
128128
if (responseObj instanceof InvocationResponse) {
129129
response = (InvocationResponse) responseObj;
130-
} else if (result instanceof Map<?, ?>) {
131-
response = InvocationResponse.createAsFacade((Map<String, Object>) result);
130+
} else if (responseObj instanceof Map<?, ?>) {
131+
response = InvocationResponse.createAsFacade((Map<String, Object>) responseObj);
132132
} else {
133133
// got no valid InvocationResponse
134134
throw new ProviderException("Response for requestId " + requestId + " invalid!");

0 commit comments

Comments
 (0)