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 79902 - NPE on synchronization of components attributes
Summary: NPE on synchronization of components attributes
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Model (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-10 14:15 UTC by kozlov
Modified: 2006-07-11 13:25 UTC (History)
4 users (show)

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 kozlov 2006-07-10 14:15:39 UTC
To reproduce the Bug:

1. create 'newpo' Schema;
2. switch to source View;
3. rename 'purchaseOrder' element;
4. invoke 'GoTo -> Schema' from context menu.

Exception:

java.lang.NullPointerException
	at
org.netbeans.modules.xml.schema.ui.basic.UIUtilities.findPathFromRoot(UIUtilities.java:84)
	at
org.netbeans.modules.xml.schema.ui.basic.SchemaColumnsView.showComponent(SchemaColumnsView.java:313)
	at
org.netbeans.modules.xml.schema.ui.basic.SchemaColumnsCategory.showComponent(SchemaColumnsCategory.java:121)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaColumnViewMultiViewElement$1.showComponent(SchemaColumnViewMultiViewElement.java:143)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaMultiViewSupport.viewInSwingThread(SchemaMultiViewSupport.java:326)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaMultiViewSupport.view(SchemaMultiViewSupport.java:297)
	at
org.netbeans.modules.xml.schema.ui.nodes.SchemaComponentNode.showSchema(SchemaComponentNode.java:483)
	at
org.netbeans.modules.xml.schema.ui.basic.actions.ShowSchemaAction.performAction(ShowSchemaAction.java:100)
	at org.openide.util.actions.NodeAction.performAction(NodeAction.java:261)
	at
org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:100)
	at
org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:53)
	at
org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:96)
	at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:250)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	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:1157)
	at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1198)
	at java.awt.Component.processMouseEvent(Component.java:5999)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
	at java.awt.Component.processEvent(Component.java:5764)
	at java.awt.Container.processEvent(Container.java:1984)
	at java.awt.Component.dispatchEventImpl(Component.java:4407)
	at java.awt.Container.dispatchEventImpl(Container.java:2042)
	at java.awt.Component.dispatchEvent(Component.java:4237)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
	at java.awt.Container.dispatchEventImpl(Container.java:2028)
	at java.awt.Window.dispatchEventImpl(Window.java:2405)
	at java.awt.Component.dispatchEvent(Component.java:4237)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
	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)
Comment 1 bhate 2006-07-10 18:32:47 UTC
check for valid model
Comment 2 kozlov 2006-07-11 13:25:49 UTC
Verified in build060711.