Commit 36a97d3
committed
Fix NullPointerException in McpToolUtils.toAsyncToolSpecification
The SyncToolSpecification constructor was being called with null for the
call parameter, causing NPE when async version called call().apply().
Fixed by providing proper lambda that wraps Map arguments in CallToolRequest.
Signed-off-by: mark.pollack@broadcom.com1 parent 72f7c63 commit 36a97d3
File tree
1 file changed
+3
-1
lines changed- mcp/common/src/main/java/org/springframework/ai/mcp
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| |||
0 commit comments