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.
Related to issue 84219, open the massive OTA schema and an empty schema. Cut all of the complex types from OTA and paste them to the empty schema. After several seconds, an NPE will occur, soon followed by another, and another, and so on. It seems that because the PasteAction.ActionPT is running the paste in a RequestProcessor thread, the AWT thread is competing to update the interface while the models are still changing. Would be good if we could force the paste to happen on the AWT thread. The alternative is to harden the schema/ui code to deal with components that are no longer a part of a model. Should test with elements, attributes, and the other schema component types.
Fixed in release55 branch. schema/schemaui/src/org/netbeans/modules/xml/schema/ui/nodes/SchemaComponentNode.java; new revision: 1.1.2.64; previous revision: 1.1.2.63 schema/schemaui/src/org/netbeans/modules/xml/schema/ui/nodes/categorized/ComplexTypeChildren.java; new revision: 1.1.2.8; previous revision: 1.1.2.7
The schema/ui code has been made more tolerant of model changes.