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 79980 - Drag/drop of complex type does not work
Summary: Drag/drop of complex type does not work
Status: VERIFIED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Nathan Fiedler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-11 13:41 UTC by Andrei Chistiakov
Modified: 2006-07-19 13:07 UTC (History)
5 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 Andrei Chistiakov 2006-07-11 13:41:23 UTC
Reproduced in build 060710.

To reproduce the bug:
- open PO schema;
- create a new schema;
- tile documents' windows;
- switch both schemas into tree view;
- drag USAddress node from PO schema and drop on the new one;
- drag/drop USAddress back on PO schema.

java.lang.NullPointerException
	at
org.netbeans.modules.xml.xam.AbstractComponent._getChildren(AbstractComponent.java:134)
	at
org.netbeans.modules.xml.xam.AbstractComponent.getChildren(AbstractComponent.java:125)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.addNewChildren(AXIModelUpdater.java:205)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.synchronize(AXIModelUpdater.java:162)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.visitChildren(AXIModelUpdater.java:150)
	at org.netbeans.modules.xml.axi.impl.AXIModelUpdater.visit(AXIModelUpdater.java:97)
	at org.netbeans.modules.xml.axi.impl.AXIModelUpdater.visit(AXIModelUpdater.java:81)
	at org.netbeans.modules.xml.axi.Element.accept(Element.java:58)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.visitChildren(AXIModelUpdater.java:153)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.visit(AXIModelUpdater.java:146)
	at org.netbeans.modules.xml.axi.Compositor.accept(Compositor.java:87)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.visitChildren(AXIModelUpdater.java:153)
	at
org.netbeans.modules.xml.axi.visitor.DeepAXITreeVisitor.visit(DeepAXITreeVisitor.java:78)
	at org.netbeans.modules.xml.axi.ContentModel.accept(ContentModel.java:71)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.visitChildren(AXIModelUpdater.java:153)
	at
org.netbeans.modules.xml.axi.visitor.DeepAXITreeVisitor.visit(DeepAXITreeVisitor.java:54)
	at org.netbeans.modules.xml.axi.AXIDocument.accept(AXIDocument.java:56)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.doSync(AXIModelUpdater.java:73)
	at org.netbeans.modules.xml.axi.impl.AXIModelImpl.doSync(AXIModelImpl.java:131)
	at org.netbeans.modules.xml.axi.impl.ModelAccessImpl.sync(ModelAccessImpl.java:90)
	at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:216)
[catch] at org.netbeans.modules.xml.xam.AbstractModel$1.run(AbstractModel.java:495)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:598)
	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 Nam Nguyen 2006-07-13 16:52:11 UTC
I am trying this test case on my latest build.  Found that drag-n-drop of
USAddress does not work at all in both view.  Copy-n-paste works fine w/o the
NPE.  Cc'ing Nathan for comments.
Comment 2 Nathan Fiedler 2006-07-13 17:28:15 UTC
I cannot reproduce this (at least not on Solaris), however there exists another
bug, which Nam found. The drag and drop is not working quite right. Instead of
being able to drop the complex type on the Complex Types node, it must be
dropped on the "Referenced Schemas" category node. In any case, the drag/drop
works without any NPE using a 7/12 build.
Comment 3 Nam Nguyen 2006-07-14 22:07:21 UTC
For better bug management, I adjusted the description and reassign the issue to
Nathan.  Please feel free to reassign it back to me if you think the fix is
elsewhere or if already overloaded.
Comment 4 Andrei Chistiakov 2006-07-19 13:06:13 UTC
Not reproducible in build 060718_1.
Comment 5 Andrei Chistiakov 2006-07-19 13:07:34 UTC
Verified in build 060718_1.