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 83570

Summary: AssertionError on closing OTA schema after applying design pattern to it
Product: xml Reporter: Andrei Chistiakov <ca-nb>
Component: Schema ToolsAssignee: Ayub Khan <ayubskhan>
Status: VERIFIED DUPLICATE    
Severity: blocker CC: cwebster, htt, ivansidorkin, kozlov
Priority: P1    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Andrei Chistiakov 2006-08-28 10:42:29 UTC
Reproduced in build 060827 (JDK 1.6 beta 2).

To reproduce the bug:
- from within Projects apply Russian Doll design pattern to a flattened OTA
schema (do not open the schema in editor before applying);
- open the schema;
- validate the schema;
- close the schema/discard changes.
java.lang.AssertionError
	at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:96)
	at org.netbeans.editor.BaseDocument.getParagraphElement(BaseDocument.java:1575)
	at org.netbeans.editor.Utilities.getLineOffset(Utilities.java:595)
	at
org.netbeans.modules.xml.text.folding.XmlFoldManager.isOneLineElement(XmlFoldManager.java:394)
	at
org.netbeans.modules.xml.text.folding.XmlFoldManager.addElementsRecursivelly(XmlFoldManager.java:130)
	at
org.netbeans.modules.xml.text.folding.XmlFoldManager.addElementsRecursivelly(XmlFoldManager.java:138)
	at
org.netbeans.modules.xml.text.folding.XmlFoldManager.addElementsRecursivelly(XmlFoldManager.java:138)
...
Comment 1 Ayub Khan 2006-08-28 20:57:55 UTC

*** This issue has been marked as a duplicate of 83567 ***
Comment 2 Andrei Chistiakov 2006-09-01 11:02:47 UTC
Verified in build 060831_2.