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.

Bug 257865 - NullPointerException at org.netbeans.modules.java.hints.suggestions.ConstantNameHint.isImmutableType
Summary: NullPointerException at org.netbeans.modules.java.hints.suggestions.ConstantN...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-05 10:44 UTC by _ gtzabari
Modified: 2016-04-30 01:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 222396


Attachments
stacktrace (4.23 KB, text/plain)
2016-02-05 10:44 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2016-02-05 10:44:03 UTC
Build: NetBeans IDE Dev (Build 201602010002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.71-b15, Java(TM) SE Runtime Environment, 1.8.0_71-b15
OS: Windows 10

User Comments:
gtzabari: Switched tab in editor, exception thrown.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.hints.suggestions.ConstantNameHint.isImmutableType(ConstantNameHint.java:206)
   at org.netbeans.modules.java.hints.suggestions.ConstantNameHint.isImmutableValue(ConstantNameHint.java:239)
   at org.netbeans.modules.java.hints.suggestions.ConstantNameHint.checkConstantName(ConstantNameHint.java:154)
   at sun.reflect.GeneratedMethodAccessor61.invoke(GeneratedMethodAccessor61.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
Comment 1 _ gtzabari 2016-02-05 10:44:06 UTC
Created attachment 158388 [details]
stacktrace
Comment 2 Svata Dedic 2016-04-28 14:31:35 UTC
Fixed in jet-main#e0ba64413247
Comment 3 Quality Engineering 2016-04-30 01:58:55 UTC
Integrated into 'main-silver', will be available in build *201604300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e0ba64413247
User: Svata Dedic <sdedic@netbeans.org>
Log: #257865: avoid NPE on incomplete sources