Potential NPE
See original GitHub issueDescribe the bug
Hi,
À potential NPE appears in
JvmOptionConverter#jvmOptionExists(JvmOptions jvmOptions)
A call to jvmOptions.values()
is done and a check to JvmOption != null
is done afterward which may lead to a NPE
See directly : quickperf/jvm/jvm-annotations/src/main/java/org/quickperf/jvm/JvmOptionConverter.java
Versions
- QuickPerf: 1.0.1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
IntelliJ IDEA missing potential NPE warning - Stack Overflow
IntelliJ IDEA missing potential NPE warning ... Is there some configuration that stops it warning of NPE if I don't do an if...
Read more >Potential NPE inspection? – IDEs Support (IntelliJ Platform)
Didn't there used to be an inspection that located potential null-pointer exceptions? I can't seem to find it anywhere. Am I blind? Am...
Read more >Potential NPE during AndroidCacheFileFactory initialization
Invoke ChuckerInterceptor constructor. Expected behavior. Not sure what is that cache used for. If it is mandatory, NPE could be wrapped by ...
Read more >568199 – Potential NPE in InlineConstantTests.java - Bugs
Rank: Scary (6), confidence: High Pattern: NP_NULL_ON_SOME_PATH Type: NP, Category: CORRECTNESS (Correctness) Obviously running the following code ...
Read more >Optional.ofNullable(null).orElse is reported as a potential NPE
The following code is reported as a potential NPE when this cannot happen considering how the call works. String myHeader = Optional.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @jeanbisutti, Because I only read the code directly from github without pulling the code on my IDE, I wasn’t sure if JvmOptions could be null or not. It would be a pleasure to contribute. I’ll send a PR as soon as I can.
Fixed with 18665ddd30b459929deabfb73778d0f64608c5d9. Thank you @FranckDemeyer!