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 80326

Summary: Profiler points corrupts editor annotation bar of non-java files
Product: profiler Reporter: ehucka <ehucka>
Component: BaseAssignee: issues@profiler <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ehucka 2006-07-14 17:12:50 UTC
Profiler build 060714

If I try to invoke popup menu on annotation bar (line numbers) in editor for
some non-java file an NPE is thrown and the popup menu does not appear:

java.lang.NullPointerException
        at
org.netbeans.modules.profiler.ui.profilepoints.ProfilePointUI$Location.classForURL(ProfilePointUI.java:445)
        at
org.netbeans.modules.profiler.ui.profilepoints.ProfilePointUI$Location.<init>(ProfilePointUI.java:297)
        at
org.netbeans.modules.profiler.ui.profilepoints.ProfilePointsManager.getCurrentLocation(ProfilePointsManager.java:419)
        at
org.netbeans.modules.profiler.ui.profilepoints.CustomizePointAction2.enable(CustomizePointAction2.java:23)
        at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:175)
        at org.netbeans.editor.Annotations.initMenu(Annotations.java:714)
        at org.netbeans.editor.Annotations.createMenu(Annotations.java:800)
        at org.netbeans.editor.Annotations.createPopupMenu(Annotations.java:642)
        at
org.netbeans.editor.GlyphGutter$GutterMouseListener.showPopup(GlyphGutter.java:769)
        at
org.netbeans.editor.GlyphGutter$GutterMouseListener.mousePressed(GlyphGutter.java:791)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
Comment 1 Jiri Sedlacek 2006-07-14 18:53:12 UTC
Fixed.
Comment 2 ehucka 2006-07-24 13:38:10 UTC
verified