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

Check pointer value #1012

Closed
johnshajiang opened this issue Dec 26, 2024 · 0 comments · Fixed by #1013
Closed

Check pointer value #1012

johnshajiang opened this issue Dec 26, 2024 · 0 comments · Fixed by #1013
Assignees
Labels
bug Something isn't working

Comments

@johnshajiang
Copy link
Collaborator

johnshajiang commented Dec 26, 2024

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.

@johnshajiang johnshajiang added the bug Something isn't working label Dec 26, 2024
@johnshajiang johnshajiang self-assigned this Dec 26, 2024
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 a pull request may close this issue.

1 participant