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.
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)
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.
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.
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.
Not reproducible in build 060718_1.
Verified in build 060718_1.