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 242918 - NullPointerException at org.netbeans.editor.Annotations.createSubMenu
Summary: NullPointerException at org.netbeans.editor.Annotations.createSubMenu
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-14 23:37 UTC by _ gtzabari
Modified: 2015-07-23 01:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208406


Attachments
stacktrace (2.85 KB, text/plain)
2014-03-14 23:37 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2014-03-14 23:37:35 UTC
Build: NetBeans IDE Dev (Build 201403040001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b69, Java(TM) SE Runtime Environment, 1.8.0-b129
OS: Windows 7

User Comments:
gtzabari: Right click on breakpoint.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.editor.Annotations.createSubMenu(Annotations.java:747)
   at org.netbeans.editor.Annotations.createSubMenus(Annotations.java:777)
   at org.netbeans.editor.Annotations.initMenu(Annotations.java:799)
   at org.netbeans.editor.Annotations.createMenu(Annotations.java:917)
   at org.netbeans.editor.Annotations.createPopupMenu(Annotations.java:740)
   at org.netbeans.editor.GlyphGutter$GutterMouseListener.showPopup(GlyphGutter.java:1004)
Comment 1 _ gtzabari 2014-03-14 23:37:36 UTC
Created attachment 146036 [details]
stacktrace
Comment 2 Milutin Kristofic 2015-07-22 13:13:10 UTC
The NPE happens because of 

INFO: java.lang.NullPointerException: null AnnotationType for:CurrentPC
	at org.netbeans.editor.AnnotationTypes.getType(AnnotationTypes.java:325)
	at org.netbeans.editor.AnnotationDesc.updateAnnotationType(AnnotationDesc.java:192)
	at org.netbeans.editor.AnnotationDesc.getActions(AnnotationDesc.java:146)
	at org.netbeans.editor.Annotations.createSubMenu(Annotations.java:745)
	at org.netbeans.editor.Annotations.createSubMenus(Annotations.java:777)
	at org.netbeans.editor.Annotations.initMenu(Annotations.java:799)
	at org.netbeans.editor.Annotations.createMenu(Annotations.java:917)
	at org.netbeans.editor.Annotations.createPopupMenu(Annotations


I added more information to error. http://hg.netbeans.org/jet-main/rev/d060fbd7f16d
Comment 3 Quality Engineering 2015-07-23 01:14:37 UTC
Integrated into 'main-silver', will be available in build *201507230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d060fbd7f16d
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #242918 - NullPointerException at org.netbeans.editor.Annotations.createSubMenu