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

JDK crushed during unit test under IDEA #132

Open
magicprinc opened this issue Jun 5, 2023 · 0 comments
Open

JDK crushed during unit test under IDEA #132

magicprinc opened this issue Jun 5, 2023 · 0 comments

Comments

@magicprinc
Copy link

magicprinc commented Jun 5, 2023

Windows 10. Latest IDEA. Same environment and tests, nothing special, but suddenly a crash... twice
hs_err_pid10888.log
hs_err_pid14376.log

I have changed JDK to Liberica 20.0.1 and instead of a crash I have received NullPointerException!

It looks like ConcurrentHashMap.values().iterator().next() CAN return null.
After I have added check for this possibility, no more NPE and crashes yet (on JDK 17 too)

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

No branches or pull requests

1 participant