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 63986 - IndexOutOfBoundsException when editing XML file
Summary: IndexOutOfBoundsException when editing XML file
Status: VERIFIED DUPLICATE of bug 64081
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 14:29 UTC by Jiri Prox
Modified: 2005-09-13 12:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (1.26 KB, text/plain)
2005-09-09 14:30 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2005-09-09 14:29:53 UTC
NB 5.0 dev build 20050909

IndexOutOfBoundsException thrown when editing XML file.

Steps to reproduce:
1) open XML file
2) edit it (add some lines with text)

-> java.lang.IndexOutOfBoundsException: Index: -1, Size: 3
	at java.util.ArrayList.add(ArrayList.java:369)
	at
org.netbeans.modules.xml.text.navigator.TreeNodeAdapter.elementAdded(TreeNodeAdapter.java:264)
	at
org.netbeans.modules.editor.structure.api.DocumentElement.fireDocumentElementEvent(DocumentElement.java:275)
Comment 1 Jiri Prox 2005-09-09 14:30:43 UTC
Created attachment 24664 [details]
exception
Comment 2 Max Sauer 2005-09-13 12:35:15 UTC
I can reproduce it.
[nb 5.0 dev 200509122200, JDK 1.5.0_05 b03, solaris 10/sparc]
Comment 3 Max Sauer 2005-09-13 12:37:55 UTC
Once upon a time, this exception pops up, and from then on, editing of an XML is
impossible. Exception alert pops up after each few typed chacters.
Comment 4 zikmund 2005-09-13 12:39:39 UTC
Fixed couple of minutes ago.

*** This issue has been marked as a duplicate of 64081 ***
Comment 5 Jiri Kovalsky 2005-09-13 12:41:47 UTC
Verifying as duplicate issue.