temp fix for void mapping returning null
This commit is contained in:
parent
18ef0c78e4
commit
51e9c98520
1 changed files with 6 additions and 1 deletions
|
|
@ -80,7 +80,12 @@ public class McpAsyncSession {
|
|||
if (jsonRpcResponse.error() != null) {
|
||||
s.error(new McpError(jsonRpcResponse.error()));
|
||||
} else {
|
||||
s.next(this.objectMapper.convertValue(jsonRpcResponse.result(), typeRef));
|
||||
if (typeRef.getType().getTypeName().equals("java.lang.Void")) {
|
||||
s.complete();
|
||||
} else {
|
||||
s.next(this.objectMapper.convertValue(jsonRpcResponse.result(),
|
||||
typeRef));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue