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

Jnipp fixes #285

Closed
wants to merge 2 commits into from
Closed

Jnipp fixes #285

wants to merge 2 commits into from

Conversation

rbessems
Copy link
Contributor

@rbessems rbessems commented Dec 7, 2021

Fixing JNI null de-reference crash.

If the local thread attached the current thread
to the VM outside of this system it is possible
that _env is null AND IsAttached returns true.

If _env is null yet the thread is attached, use
the environment as given by GetEnv.
@rpavlik
Copy link
Contributor

rpavlik commented Dec 7, 2021

Thanks for this! I actually had just gotten essentially this patch submitted to Monado, but based on and including a few other small fixes https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1032 I'll close this PR but will reference it in the changelog fragment for the one I submitted.

@rpavlik rpavlik closed this Dec 7, 2021
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.

2 participants