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 80600 - NPE on applying design pattern
Summary: NPE on applying design pattern
Status: VERIFIED DUPLICATE of bug 80289
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-19 13:39 UTC by Andrei Chistiakov
Modified: 2006-07-27 12:53 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 Andrei Chistiakov 2006-07-19 13:39:35 UTC
Reproduced in build 060718_1.

To reproduce the bug:

- open PO schema;
- switch to source view;
- invoke 'Apply Design Pattern...';
- set pattern type to Russian Doll (only 'Create a Single Global Element' checked);
- press Finish.

java.lang.NullPointerException
	at
org.netbeans.modules.xml.xam.AbstractComponent.verifyWrite(AbstractComponent.java:188)
	at
org.netbeans.modules.xml.xam.AbstractComponent.removeChild(AbstractComponent.java:343)
	at
org.netbeans.modules.xml.axi.AXIComponent.removeSharedChild(AXIComponent.java:435)
	at org.netbeans.modules.xml.axi.AXIComponent.removeChild(AXIComponent.java:416)
	at
org.netbeans.modules.xml.axi.AXIComponent.removeSharedChild(AXIComponent.java:441)
	at org.netbeans.modules.xml.axi.AXIComponent.removeChild(AXIComponent.java:416)
	at
org.netbeans.modules.xml.axi.AXIComponent.removeSharedChild(AXIComponent.java:441)
	at org.netbeans.modules.xml.axi.AXIComponent.removeChild(AXIComponent.java:416)
	at org.netbeans.modules.xml.axi.AXIComponent.removeChild(AXIComponent.java:462)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.synchronize(AXIModelUpdater.java:154)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.visitChildren(AXIModelUpdater.java:110)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.visit(AXIModelUpdater.java:180)
	at org.netbeans.modules.xml.axi.AXIDocument.accept(AXIDocument.java:56)
	at
org.netbeans.modules.xml.axi.impl.AXIModelUpdater.doSync(AXIModelUpdater.java:77)
	at org.netbeans.modules.xml.axi.impl.AXIModelImpl.doSync(AXIModelImpl.java:136)
	at org.netbeans.modules.xml.axi.impl.ModelAccessImpl.sync(ModelAccessImpl.java:91)
	at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:221)
[catch] at org.netbeans.modules.xml.xam.AbstractModel$1.run(AbstractModel.java:500)
	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 Ayub Khan 2006-07-19 17:44:37 UTC
Duplicate of 80289

*** This issue has been marked as a duplicate of 80289 ***
Comment 2 Andrei Chistiakov 2006-07-27 12:53:38 UTC
Verified in build 060726.