commit | 921451a776e7c22df071b36268e472f4049af720 | [log] [tgz] |
---|---|---|
author | jeffliu <jeffliu> | Mon Aug 21 19:14:39 2006 +0000 |
committer | jeffliu <jeffliu> | Mon Aug 21 19:14:39 2006 +0000 |
tree | 84141c0b047aa6d1f8be575d3ab270a6cca21e72 | |
parent | a47e981d5ade9b4e7ba39885c7df43174b691a81 [diff] |
[136935] Slow Performance and Out of Memory Error Editing Large XML Document
diff --git a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/validation/DelegatingSourceValidator.java b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/validation/DelegatingSourceValidator.java index eddc9e5..117ca1b 100644 --- a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/validation/DelegatingSourceValidator.java +++ b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/validation/DelegatingSourceValidator.java
@@ -125,7 +125,7 @@ // store the text in a byte array; make a full copy to ease // any threading problems ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); - byte[] byteArray = null; + byte[] byteArray = new byte[0]; try { int docLength = fDocument.getLength(); /*