Skip to content

Conversation

@zhthhh
Copy link

@zhthhh zhthhh commented Dec 7, 2025

  • Add null pointer check in XMLDocument::DeleteNode() method
  • Add test case to verify null pointer handling
  • Prevents segmentation fault when calling DeleteNode(nullptr)

…leteNode

- Add null pointer check in XMLDocument::DeleteNode() method
- Add test case to verify null pointer handling
- Prevents segmentation fault when calling DeleteNode(nullptr)
@zhthhh
Copy link
Author

zhthhh commented Dec 7, 2025

I have added null pointer tests for the DeletNode function. Previously, passing a null pointer to DeletNode in the release build would cause a segmentation fault. With this modification, a safe return logic has been implemented to handle such cases.

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.

1 participant