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.
Build: NetBeans IDE Dev (Build 200910290252) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219 OS: Mac OS X, 10.6.1, x86_64 User Comments: lhasik: reproducible only when the FXZ is opened for first time and user wants to switch to "Source" lhasik: -opened FXZ file from Favorites view -then wanted to switch to "Source" view in Editor -> exception Stacktrace: java.lang.NullPointerException at org.netbeans.editor.Utilities.getEditorUI(Utilities.java:1217) at org.netbeans.modules.javafx.fxd.composer.source.SourceEditorWrapper.addErrorStatusBarCell(SourceEditorWrapper.java:193) at org.netbeans.modules.javafx.fxd.composer.source.SourceEditorWrapper$EditorLookupWrapper.<init>(SourceEditorWrapper.java:43) at org.netbeans.modules.javafx.fxd.composer.source.SourceEditorWrapper.wrap(SourceEditorWrapper.java:126) at org.netbeans.modules.javafx.fxd.composer.source.SourceElement.getVisualRepresentation(SourceElement.java:117) at org.netbeans.core.multiview.TabsComponent.switchToCard(TabsComponent.java:187)
Created attachment 90267 [details] stacktrace
Build: NetBeans IDE Dev (Build 200910290252) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219 OS: Mac OS X, 10.6.1, x86_64 User Comments: reproducible only when the FXZ is opened for first time and user wants to switch to "Source" Stacktrace: java.lang.NullPointerException at org.netbeans.editor.Utilities.getEditorUI(Utilities.java:1217) at org.netbeans.modules.javafx.fxd.composer.source.SourceEditorWrapper.addErrorStatusBarCell(SourceEditorWrapper.java:193) at org.netbeans.modules.javafx.fxd.composer.source.SourceEditorWrapper$EditorLookupWrapper.<init>(SourceEditorWrapper.java:43) at org.netbeans.modules.javafx.fxd.composer.source.SourceEditorWrapper.wrap(SourceEditorWrapper.java:126) at org.netbeans.modules.javafx.fxd.composer.source.SourceElement.getVisualRepresentation(SourceElement.java:117) at org.netbeans.core.multiview.TabsComponent.switchToCard(TabsComponent.java:187)
Created attachment 90268 [details] stacktrace
It seems that this issue is caused by issue 17559o. The only change I see reasonable to do on fx side is to block NPE to have the same behavior as in other modules.
NPE is blocked. changeset: 2843:a121e3d4a3a2 the rest should be done on issue 175590 side.
What editor support do you use?
We have invoked CloneableEditor.componentShowing() from MultiViewElement.componentShowing() implementation, as expected. But before component is ready to show, we have invoked CloneableEditor.getEditorPane() for wrapping purposes. I have added componentShowing(); invocation before getEditorPane(). It works now. http://hg.netbeans.org/javafx/rev/88092d07cb1a
verified with 200911200201