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.
This bug was originally marked as duplicate of bug 217995, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201209210001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b03, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b08 OS: Mac OS X User Comments: sreimers: Copying and pasting into xml file, then trying to format Stacktrace: java.lang.IllegalArgumentException: indent=-4 < 0 at org.netbeans.modules.editor.indent.api.IndentUtils.createIndentString(IndentUtils.java:203) at org.netbeans.modules.xml.text.indent.XMLLexerFormatter.changePrettyText(XMLLexerFormatter.java:138) at org.netbeans.modules.xml.text.indent.XMLLexerFormatter.doReformat(XMLLexerFormatter.java:116) at org.netbeans.modules.xml.text.indent.XMLLexerFormatter$1.run(XMLLexerFormatter.java:102) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1353) at org.netbeans.modules.xml.text.indent.XMLLexerFormatter.reformat(XMLLexerFormatter.java:99)
Created attachment 124738 [details] stacktrace
Changeset: bd8f6716ebdd Author: Svata Dedic <sdedic@netbeans.org> Date: 2012-09-24 12:49 Message: Issue #218805 - IllegalArgumentException: indent=-4 < 0: fixed Cleaned up code a bit, added guard against negative indents for unbalanced end tags and subsequent tokens
Integrated into 'main-golden', will be available in build *201209260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/bd8f6716ebdd User: Svata Dedic <sdedic@netbeans.org> Log: Issue #218805 - IllegalArgumentException: indent=-4 < 0: fixed Cleaned up code a bit, added guard against negative indents for unbalanced end tags and subsequent tokens
*** Bug 222222 has been marked as a duplicate of this bug. ***