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 268366 - 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: Dev
Hardware: All All
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-05 20:34 UTC by Jesse Glick
Modified: 2016-12-09 21:43 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 226607


Attachments
stacktrace (8.42 KB, text/plain)
2016-10-05 20:34 UTC, Jesse Glick
Details
stacktrace (7.46 KB, text/plain)
2016-12-09 20:03 UTC, ystmio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2016-10-05 20:34:36 UTC
This bug was originally marked as duplicate of bug 257393, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20160928-1b0104a56292)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.92-b14, Java(TM) SE Runtime Environment, 1.8.0_92-b14
OS: Linux

User Comments:
jglick: Editing Java sources.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl(ElementUtilities.java:159)
   at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElement(ElementUtilities.java:154)
   at de.markiewb.netbeans.plugins.hints.structure.MethodNameHint.convert(MethodNameHint.java:79)
   at sun.reflect.GeneratedMethodAccessor120.invoke(GeneratedMethodAccessor120.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
Comment 1 Jesse Glick 2016-10-05 20:34:38 UTC
Created attachment 162357 [details]
stacktrace
Comment 2 Exceptions Reporter 2016-11-10 06:19:30 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=226607
Comment 3 Svata Dedic 2016-11-11 12:08:26 UTC
Third-party plugin issue, should not pass null to ElementUtilities.enclosingTypeElement()
Comment 4 ystmio 2016-12-09 20:03:45 UTC
Created attachment 163199 [details]
stacktrace

Not remember
Comment 5 markiewb 2016-12-09 21:25:33 UTC
Filed as https://github.com/markiewb/nb-additional-hints/issues/77
Comment 6 markiewb 2016-12-09 21:43:58 UTC
Fixed in https://github.com/markiewb/nb-additional-hints/releases/tag/v1.6.0.10

Uploaded to plugin portal