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 - Profiler points corrupts editor annotation bar of non-java files
Summary: Profiler points corrupts editor annotation bar of non-java files
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-14 17:12 UTC by ehucka
Modified: 2006-10-23 16:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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