Skip to content

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

Merged
LearningGp merged 2 commits intoagentscope-ai:mainfrom
guanxuc:fix-npe-toolkit-973
Mar 26, 2026
Merged

fix(core): Fix NPE in Toolkit.getTool when tool name is null#982
LearningGp merged 2 commits 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!

@guanxuc guanxuc force-pushed the fix-npe-toolkit-973 branch from 8b65511 to 614c3e3 Compare March 24, 2026 13:37
@guanxuc guanxuc requested a review from LearningGp March 24, 2026 13:37
@guanxuc
Copy link
Contributor Author

guanxuc commented Mar 24, 2026

@LearningGp Thanks for your review! I have updated the unit test docs.

Copy link
Collaborator

@LearningGp LearningGp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LearningGp LearningGp merged commit 95b775b into agentscope-ai:main Mar 26, 2026
6 checks passed
@guanxuc guanxuc deleted the fix-npe-toolkit-973 branch March 26, 2026 03:14
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)

2 participants