question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Describe the bug Hi, À potential NPE appears in JvmOptionConverter#jvmOptionExists(JvmOptions jvmOptions) A call to jvmOptions.values() is done and a check to JvmOption != nullis 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
FranckDemeyercommented, Aug 1, 2021

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.

0reactions
jeanbisutticommented, Aug 2, 2021

Fixed with 18665ddd30b459929deabfb73778d0f64608c5d9. Thank you @FranckDemeyer!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found