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.
Summary: | NPE on activvating top component from JSP module | ||
---|---|---|---|
Product: | platform | Reporter: | pzajac <pzajac> |
Component: | -- Other -- | Assignee: | Peter Zavadsky <pzavadsky> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | exception stacktrace |
Description
pzajac
2003-11-13 09:36:18 UTC
Created attachment 12135 [details]
exception stacktrace
*** This issue has been marked as a duplicate of 37141 *** Sorry, this is not duplicate of 37142. The code in BaseJspEditor, which extends CloneableEditor, is: getEditorPane().addCaretListener(caretListener); The method getEditorPane returns pane from CloneableEditor, but the pane is null. Giving it back to Peter, it looks like it's his problem Fixed in [trunk] just hot fix: core/windows/../PersistenceHandler.java 1.3 Problem: There was fired from TC.Registry event about activated TC, even there was not shown the winsys on the screen (thus the TC was not inited yet). That event is there so the Registry get the activated nodes after startup. Solution: There needs to be considered when exactly the first activation event should be fired. From this case it seem immediatelly after the winsys is shown, but I guess it made another problems (like after init of properties window content). I did small workaround in the jsp module: protected void componentActivated() { // Workaround for bug #37188. If the pane is null, don't activate the component. if (getEditorPane() != null){ getEditorPane().addCaretListener(caretListener); super.componentActivated(); } } verified |