Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Maxim Shafirov
Subsystem
Code Analysis. Inspection
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Jonas Kvarnstrom
    6 years ago (17 Aug 2005 20:26)
  • Updated by   root
    2 years ago (17 Jan 2010 20:22)
  • Jira: IDEADEV-2285
    (history, comments)
 
IDEA-29934 "... is probably null" -> "may be null"
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
I was sure there was already a bug report for this, but I can't find it...

IDEA sometimes complains that a value "is probably null". This is completely wrong; it "may be null" – just like you don't say that a certain method call "will probably produce NPE", you say that it "may produce NPE". This is a simple fix that I'd love to see in 5.0.1, before I have to tell all my students that "no, IDEA hasn't analyzed your code to determine that this value will most likely be null; it really only means to say that the value might be null".

Issue was resolved
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments