eclipse: AIOOBE (IDEA-137968)

This commit is contained in:
Anna Kozlova
2015-03-24 16:48:17 +01:00
parent 7d44431f2b
commit fa5e70eba8
@@ -252,7 +252,7 @@ public class EclipseClasspathWriter {
if (path != null) {
orderEntry.setAttribute(EclipseXml.PATH_ATTR, path);
}
if (index == -1) {
if (index == -1 || index >= classpathRoot.getContentSize()) {
classpathRoot.addContent(orderEntry);
}
else {