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 81829 - NPE on editing of element 'annotation'
Summary: NPE on editing of element 'annotation'
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 16:34 UTC by kozlov
Modified: 2006-08-23 16:41 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 kozlov 2006-08-03 16:34:43 UTC
Reproduced in build 060802.

To reproduce the bug:

- create a 'loanApplication' schema;
- switch to Source;
- add second annotation to 'autoLoanApplication' element:
	'<xs:annotation id="a"/>'
- delete 'id="a"/>''; 
- type '>'.

Exception:

java.lang.NullPointerException
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentModel.removeChildComponent(AbstractDocumentModel.java:289)
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentModel.processSyncUnit(AbstractDocumentModel.java:263)
	at org.netbeans.modules.xml.xdm.xam.XDMListener.endSync(XDMListener.java:80)
	at org.netbeans.modules.xml.xdm.xam.XDMAccess.sync(XDMAccess.java:124)
	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 Nam Nguyen 2006-08-08 07:59:24 UTC
Fixed as part of general sync/autosync strengthening effort.
Comment 2 kozlov 2006-08-23 16:41:46 UTC
Verified in build060823.