Unnecessary "may produce NullPointerException" warning
已回答

I'm explicitly testing for null so why am I getting warned about the @Nullable condition?
I'm still on 2024.3.2.2
请先登录再写评论。
Please provide a minimal sample project so I can reproduce the issue without including your sensitive code.
Please upload it to https://uploads.jetbrains.com/ and paste the upload id here, the uploaded file is only visible to JetBrains employees.
Thank you!
I've tried a few different ways to produce a minimal case and failed.
The code is here: https://github.com/i-make-robots/DiscordDND/blob/cff191b76b2197aa92048e5301a44e4dbe6e01cd/src/main/java/com/marginallyclever/discorddnd/DiscordDND.java#L148
Hi Dan,
This is just a warning but not an error.
To reduce time and give fast suggestions on the fly, IDEA doesn't do complex logic on code analyze.
If you don't want to see this hint, you can turn off it by scroll down at the Options place in the menu File | Settings | Inspection: