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 257393 - NullPointerException at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl
Summary: NullPointerException at org.netbeans.api.java.source.ElementUtilities.enclosi...
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: markiewb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-04 15:20 UTC by Jesse Glick
Modified: 2016-12-09 21:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 221957


Attachments
stacktrace (4.27 KB, text/plain)
2016-01-04 15:20 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2016-01-04 15:20:19 UTC
Build: NetBeans IDE Dev (Build 20160104-a8e46ac0d935)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: Linux

User Comments:
jglick: Bogus compiler errors.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl(ElementUtilities.java:154)
   at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElement(ElementUtilities.java:149)
   at de.markiewb.netbeans.plugins.hints.structure.MethodNameHint.convert(MethodNameHint.java:79)
   at sun.reflect.GeneratedMethodAccessor75.invoke(GeneratedMethodAccessor75.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
Comment 1 Jesse Glick 2016-01-04 15:20:21 UTC
Created attachment 157988 [details]
stacktrace
Comment 2 Svata Dedic 2016-01-07 10:53:40 UTC
not a core NB code. ElementUtilities.enclosingTypeElement() seems to get null parameter.
Comment 3 markiewb 2016-01-07 19:21:09 UTC
(In reply to Svata Dedic from comment #2)
> not a core NB code. ElementUtilities.enclosingTypeElement() seems to get
> null parameter.

I will fix it. https://github.com/markiewb/nb-additional-hints/issues/64
Comment 5 Jesse Glick 2016-10-05 20:37:04 UTC
Hmm, http://plugins.netbeans.org/plugin/47589/additional-java-hints only seems to have 1.5.0?
Comment 6 markiewb 2016-12-09 21:44:24 UTC
Hmm, http://plugins.netbeans.org/plugin/47589/additional-java-hints only seems to have 1.5.0?

-> Uploaded to plugin portal