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.
Description: Sierra ML release Build : 1/ Opened up an EJB's DD as read-only 2/ To enable line numbers in the source editor, i tried to right click on the left pane to check 'show line numbers' and i got this NPE. Wed Jan 15 15:51:17 CST 2003: java.lang.NullPointerException: <no message> java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorKit$NbToggleLineNumbersAction.isLineNumbersVisible(NbEditorKit.java:445) at org.netbeans.editor.ActionFactory$ToggleLineNumbersAction.getPopupMenuItem(ActionFactory.java:1216) at org.netbeans.editor.Annotations.createMenu(Annotations.java:562) at org.netbeans.editor.Annotations.createPopupMenu(Annotations.java:479) at org.netbeans.editor.GlyphGutter$GutterMouseListener.mouseClicked(GlyphGutter.java:562) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:208) at java.awt.Component.processMouseEvent(Component.java:5024) at java.awt.Component.processEvent(Component.java:4818) at java.awt.Container.processEvent(Container.java:1525) at java.awt.Component.dispatchEventImpl(Component.java:3526) at java.awt.Container.dispatchEventImpl(Container.java:1582) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3083) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004) at java.awt.Container.dispatchEventImpl(Container.java:1568) at java.awt.Window.dispatchEventImpl(Window.java:1581) at java.awt.Component.dispatchEvent(Component.java:3367) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at java.awt.EventDispatchThread.run(EventDispatchThread.java:98) Evaluation: Now, when I right click inside of the left pane, the small pop up menu appears and I'm able to select "Show Line Numbers" with no problems (no NPE is thrown). However, the line numbers do not appear even though the check box (for Show Line Numbers) is checked, so there is still a bug. The problem is probably occurring because I supply my own CloneableEditor implementation, but as I don't really do anything wrt the left pane, I would think that displaying the line numbers would still work. xxx@xxxx 2003-03-05 A comment.
Here is patch for [release35] but there should not be any difference with [maintrunk].
Created attachment 11344 [details] diff in -c format
Yes. The patch is OK and it can be applied also in [maintrunk]. Thanks.
[200403031900] This issue is probably fixed. Am I right ? I am trying reproduce it, but without success. If there won't be other input, then I close this issue as worksforme.
Issue should be targeted to release36. It was fixed in nevada fixes branch only...
integrated into the [maintrunk] visual diff: http://editor.netbeans.org/source/browse/editor/src/org/netbeans/modules/editor/options/BaseOptions.java.diff?r1=1.87&r2=1.88 Mila, could you please review the fix? I just take the fix, Honza K. proposed. Thanks. Petr, the issue is hard to reproduce, you should create your own kit by extending some editor kit, i.e. JavaKit and use options for that... I believe it was tested already for integration into [nevadafixes] and [release351A] where this fix is already present.
Approved.
I can't reproduce it, but the fix looks good. Verified.
integrated into [release36] /cvs/editor/src/org/netbeans/modules/editor/options/BaseOptions.java,v <-- BaseOptions.java new revision: 1.87.2.1; previous revision: 1.87
Miloslave, could you please verify this issue? Thanks.
verified