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 - AssertionError on closing OTA schema after applying design pattern to it
Summary: AssertionError on closing OTA schema after applying design pattern to it
Status: VERIFIED DUPLICATE of bug 83567
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-08-28 10:42 UTC by Andrei Chistiakov
Modified: 2006-09-01 11:02 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-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.