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 16110 - disabling editor module does not close all editor's TopComponents
Summary: disabling editor module does not close all editor's TopComponents
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-02 10:57 UTC by Martin Roskanin
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE from AnnotationDesc.isDefaultGlyph (1.39 KB, text/plain)
2001-10-02 10:58 UTC, Martin Roskanin
Details
NPE from AnnotationDesc.getColoring (2.70 KB, text/plain)
2001-10-02 10:59 UTC, Martin Roskanin
Details
Exception thrown. (740 bytes, text/plain)
2001-10-12 09:35 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Roskanin 2001-10-02 10:57:30 UTC
NPE throws after disabling of editor module.
Steps to reproduce.
1. Take the newest build 02.10
2. open source editor
3. Add bookmark
4. disable editor module

NPE exceptions:
java.lang.NullPointerException
        at org.netbeans.editor.AnnotationDesc.isDefaultGlyph(AnnotationDesc.java:90)

java.lang.NullPointerException
        at org.netbeans.editor.AnnotationDesc.getColoring(AnnotationDesc.java:80)

See attachements for details.
Comment 1 Martin Roskanin 2001-10-02 10:58:27 UTC
Created attachment 2795 [details]
NPE from AnnotationDesc.isDefaultGlyph
Comment 2 Martin Roskanin 2001-10-02 10:59:15 UTC
Created attachment 2796 [details]
NPE from AnnotationDesc.getColoring
Comment 3 David Konecny 2001-10-02 11:53:15 UTC
The problem is not in annotations, but in Editor which did not remove 
the annotations before uninstalling itself. I will fix it.
Comment 4 Jan Lahoda 2001-10-12 09:34:41 UTC
I did following:
1. Set some breakpoint
2. Runned debugger
3. Uninstalled editor
4. Debugger for a while
5. Tryied to close the editor

Attached exception occured.
Comment 5 Jan Lahoda 2001-10-12 09:35:38 UTC
Created attachment 2974 [details]
Exception thrown.
Comment 6 David Konecny 2001-10-23 15:30:34 UTC
The problem is somewhere else. When editor module is disabled, the 
TopComponents in which the editor is used are not closed. And as one 
of the side effects, the exceptions from annotations are thrown.
Comment 7 David Konecny 2001-10-23 15:40:41 UTC
Fixed in file:

Checking in src/org/netbeans/modules/editor/EditorModule.java;
new revision: 1.73; previous revision: 1.72
Comment 8 Quality Engineering 2003-06-30 18:04:49 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 9 Quality Engineering 2003-06-30 18:11:01 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.