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.
[ BUILD # : 200509151455 ] [ JDK VERSION : 1.5.0_05 ] When editing a large XML file, I got this: java.lang.IndexOutOfBoundsException: Index: -1, Size: 6 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) at org.netbeans.modules.editor.structure.api.DocumentElement.childAdded(DocumentElement.java:286) at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.addDE(DocumentModel.java:926) at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.commit(DocumentModel.java:872) at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.access$100(DocumentModel.java:757) at org.netbeans.modules.editor.structure.api.DocumentModel.updateModel(DocumentModel.java:417) at org.netbeans.modules.editor.structure.api.DocumentModel.access$400(DocumentModel.java:94) at org.netbeans.modules.editor.structure.api.DocumentModel$2.run(DocumentModel.java:391) at org.openide.util.Task.run(Task.java:207) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:870)
reassigning to xml module
Please attach the exact text you inserted into the template along with row and column offset in the template. Just for sure attach also the generated template before pasting the text. Without this I am not able to fix it.
What do you mean by "generated template" ? I don't remember for sure, but think this happened when editing my layer.xml file which was not from any sort of wizard or anything that I know of as a template. Sorry, should have mentioned that I could not reproduce. I'd asked previously whether stacktraces should be filed even without steps to reproduce and Jesse said that certainly NPEs should be. I've not seen it again but if I do, will try to capture the details.
Rochel, thank you for the report. However in this case I am aware of the problem but I need some steps to reproduce it to be able to fix it. Jesse is right - it is better to file an issue with just the exc. than filling not issue. I will try to figure this problem out somehow. Thanks.
fixed by fix of Issue #63348
Verifying. If you Rochelle spot this again, reopen the issue with as much information as possible.