This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Dereferencing possible null pointer - not possible null pointer | ||
---|---|---|---|
Product: | java | Reporter: | Milutin Kristofic <mkristofic> |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | normal | CC: | gtzabari |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Milutin Kristofic
2013-04-10 11:43:12 UTC
I can reproduce the same problem under dev build 201512240002. Given: assert (oldValue == null || oldValue.getType() == newValue.getType()): "oldValue: " + oldValue.getType() + ", newValue: " + newValue.getType(); Netbeans flags "oldValue.getType()" as "Dereferencing possible null pointer" but if "oldValue" is null then the "oldValue.getType()" is never executed. |