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 84398 - NPE during cut/paste of many schema components
Summary: NPE during cut/paste of many schema components
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nathan Fiedler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-07 02:28 UTC by Nathan Fiedler
Modified: 2006-09-18 23:44 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 Nathan Fiedler 2006-09-07 02:28:45 UTC
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.
Comment 1 Nathan Fiedler 2006-09-07 20:40:31 UTC
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
Comment 2 Nathan Fiedler 2006-09-18 23:44:32 UTC
The schema/ui code has been made more tolerant of model changes.