EA-36469 (diagnostic)

This commit is contained in:
Roman Shevchenko
2012-06-08 20:31:52 +04:00
parent 09281b34e4
commit 51e41f89d5
@@ -269,7 +269,14 @@ public class ArrayUtil extends ArrayUtilRt {
return array;
}
final T[] array2 = collection.toArray(factory.create(collection.size()));
final T[] array2;
try {
array2 = collection.toArray(factory.create(collection.size()));
}
catch (ArrayStoreException e) {
throw new RuntimeException("Bad elements in collection: " + collection, e);
}
if (array.length == 0) {
return array2;
}