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 23491 - NPE from JavaKit.CompletionInitializer.propertyChange
Summary: NPE from JavaKit.CompletionInitializer.propertyChange
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-14 21:07 UTC by Jesse Glick
Modified: 2008-12-22 17:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (3.20 KB, text/plain)
2002-05-14 21:08 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-05-14 21:07:28 UTC
Probably unreproducible. Observed during startup
in [dev may 13] (there were Java sources open in
the editor when shut down and still there during
restore).
Comment 1 Jesse Glick 2002-05-14 21:08:02 UTC
Created attachment 5740 [details]
Stack trace
Comment 2 Jesse Glick 2002-05-14 21:10:59 UTC
Note: NPE continued to be thrown every time I changed selection in the
Explorer, making IDE unusable. Still thrown after restarting IDE. I
closed the source files and restarted and then the NPEs stopped.
Comment 3 Martin Roskanin 2002-05-16 15:39:17 UTC
EditorCookie ec = 
(EditorCookie)nodes[0].getCookie(EditorCookie.class);
JEditorPane[] panes = ec.getOpenedPanes();

panes[0] shouldn't be null according to javadoc

reassigning to core
Comment 4 Peter Zavadsky 2002-05-16 15:59:59 UTC
Fixed in [trunk]

Fix:
openide/../text/CloneableEditorSupport.java [1.62]

Note:
It has to do with the lazy initializing of source editors (just when
they are shown first time), until that time, the TopCompoent could be
opened, but its pane is null.

Solution: Current solution si to avoid null in opened panes array,
thus it could return, there are no panes opened, but in fact some
TopComponents (not initialized yet could). The question is if it is
not a better solution to initialize such panes and return them too.
Comment 5 Marian Mirilovic 2002-07-12 15:39:31 UTC
issue without resolution !
reopen and close it again
Comment 6 Marian Mirilovic 2002-07-12 15:40:45 UTC
x
Comment 7 Marian Mirilovic 2002-11-20 10:40:04 UTC
verified
Comment 8 Quality Engineering 2003-07-01 16:21:49 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.