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.
This bug was originally marked as duplicate of bug 159992, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 7.2 (Build 201207171143) VM: Java HotSpot(TM) 64-Bit Server VM, 20.8-b03-424, Java(TM) SE Runtime Environment, 1.6.0_33-b03-424-10M3720 OS: Mac OS X Stacktrace: java.lang.NullPointerException at org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport$5.run(XmlMultiViewEditorSupport.java:444) at org.netbeans.modules.xml.multiview.Utils.runInAwtDispatchThread(Utils.java:193) at org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport.openView(XmlMultiViewEditorSupport.java:440) at org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport.open(XmlMultiViewEditorSupport.java:458) at org.openide.awt.ActionDefaultPerfomer.actionPerformed(ActionDefaultPerfomer.java:70) at org.openide.awt.ContextAction$Performer.actionPerformed(ContextAction.java:226)
Created attachment 123749 [details] stacktrace
For the records (and perhaps verification in the future): CloneableTopComponent mvtc = openCloneableTopComponent(); MultiViewHandler handler = MultiViews.findMultiViewHandler(mvtc); handler.requestVisible(handler.getPerspectives()[index < 0 ? xmlMultiViewIndex : index]); * handler.getPerspectives() seem to always return at least 0-length array * openCloneableTopComponent() returns non-null from both its branches * which means that mvtc is not actually a MultiViewTopComponent, which seems strange. the same invariant is used on more places. Please provide more details, at least what type of file you're trying to open. Ideally, supply the file (perhaps anonymized) as attachment. Thanks.