Skip to content

fix(core): Fix NPE in Toolkit.getTool when tool name is null#982

Open
guanxuc wants to merge 1 commit intoagentscope-ai:mainfrom
guanxuc:fix-npe-toolkit-973
Open

fix(core): Fix NPE in Toolkit.getTool when tool name is null#982
guanxuc wants to merge 1 commit intoagentscope-ai:mainfrom
guanxuc:fix-npe-toolkit-973

Conversation

@guanxuc
Copy link
Contributor

@guanxuc guanxuc commented Mar 16, 2026

AgentScope-Java Version

1.0.11

Description

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@guanxuc guanxuc requested a review from a team March 16, 2026 16:18
@codecov
Copy link

codecov bot commented Mar 16, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ain/java/io/agentscope/core/tool/ToolRegistry.java 75.00% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] NPE in Toolkit.getTool when tool name is null (LLM/parsing may produce null name)

1 participant