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.
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).
Created attachment 5740 [details] Stack trace
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.
EditorCookie ec = (EditorCookie)nodes[0].getCookie(EditorCookie.class); JEditorPane[] panes = ec.getOpenedPanes(); panes[0] shouldn't be null according to javadoc reassigning to core
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.
issue without resolution ! reopen and close it again
x
verified
Resolved for 3.4.x or earlier, no new info since then -> closing.