Skip to content

fix: fix null point exception#564

Merged
gaoxh merged 3 commits intoapache:masterfrom
xs3508198:fix0313
Mar 13, 2025
Merged

fix: fix null point exception#564
gaoxh merged 3 commits intoapache:masterfrom
xs3508198:fix0313

Conversation

@xs3508198
Copy link
Contributor

Ⅰ. Describe what this PR did

This PR fixes a Null Pointer Exception (NPE) in the code.

Ⅱ. Does this pull request fix one issue?

None.

Ⅲ. Why don't you add test cases (unit test/integration test)?

The fix is relatively straightforward and does not require additional test cases. However, if necessary, I can add unit tests to cover this scenario.

Ⅳ. Describe how to verify it

Run the application and navigate to the part of the code where the NPE previously occurred.
Ensure that the application no longer crashes and handles the null value gracefully.
Check the logs to confirm that no exceptions are thrown.

Ⅴ. Special notes for reviews

Please review the null check to ensure it does not impact the existing logic.

Copy link
Contributor

@wtt40122 wtt40122 left a comment

Choose a reason for hiding this comment

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

+LGTM

@gaoxh gaoxh merged commit 7fe4863 into apache:master Mar 13, 2025
3 of 4 checks passed
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.

3 participants