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 80441 - Go To Design (view) from Source (view) results in NPE.
Summary: Go To Design (view) from Source (view) results in NPE.
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: Sun Windows XP
: P1 blocker (vote)
Assignee: Girish Balachandran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-17 21:56 UTC by htt
Modified: 2006-07-22 23:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description htt 2006-07-17 21:56:52 UTC
Open a new schema.
In Design view, drag/drop an element.
From Design view, select the element. Go To <Schema, Source> -> ok
From Schema view, select the element. Go To <Source, Design> -> ok
From Source view, select the element. Go To Schema -> ok; Go To Design -> NPE.

java.lang.NullPointerException
        at
org.netbeans.modules.xml.schema.abe.UIUtilities.findSchemaComponentsFromRoot(UIUtilities.java:207)
        at
org.netbeans.modules.xml.schema.abe.UIUtilities.findMatchingAXIComponent(UIUtilities.java:194)
        at
org.netbeans.modules.xml.schema.abe.InstanceDesignerPanel.selectUIComponent(InstanceDesignerPanel.java:275)
        at
org.netbeans.modules.xml.schema.core.multiview.SchemaABEViewMultiViewElement$1.showComponent(SchemaABEViewMultiViewElement.java:125)
        at
org.netbeans.modules.xml.schema.core.multiview.SchemaMultiViewSupport.viewInSwingThread(SchemaMultiViewSupport.java:207)
        at
org.netbeans.modules.xml.schema.core.multiview.SchemaMultiViewSupport.view(SchemaMultiViewSupport.java:158)
        at
org.netbeans.modules.xml.xam.ui.actions.AbstractShowComponentAction.performAction(AbstractShowComponentAction.java:69)
        at org.openide.util.actions.NodeAction.performAction(NodeAction.java:261)
        at
org.netbeans.modules.xml.xam.ui.actions.GoToAction$ActSubMenuModel.performActionAt(GoToAction.java:190)
        at
org.openide.awt.Actions$ISubActionListener.actionPerformed(Actions.java:969)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1957)
        at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2280)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:377)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1137)
        at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1178)
        at java.awt.Component.processMouseEvent(Component.java:5957)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3280)
        at java.awt.Component.processEvent(Component.java:5722)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:4365)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:4195)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4228)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:2300)
        at java.awt.Component.dispatchEvent(Component.java:4195)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)




In Schema viewSource view, right-click an element
Comment 1 Girish Balachandran 2006-07-22 00:19:03 UTC
Fixed on 07/21
Comment 2 htt 2006-07-22 23:27:56 UTC
Verified in build 060721.