Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TKSS-1002: Check pointer value #1013

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Conversation

johnshajiang
Copy link
Collaborator

Although the JNI/C functions check the pointers, it would also be better to check them on the Java layer.
If the pointer is 0, for example the native object is already closed, then it's unnecessary to call native methods.

This PR will resolves #1012.

@johnshajiang johnshajiang added the bug Something isn't working label Dec 26, 2024
@johnshajiang johnshajiang self-assigned this Dec 26, 2024
@johnshajiang johnshajiang merged commit 9a45a24 into Tencent:master Dec 26, 2024
11 checks passed
@johnshajiang johnshajiang deleted the TKSS-1012 branch December 26, 2024 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check pointer value
1 participant