import org.eclipse.core.runtime.Status;
public class StatusUtil {
protected static List flatten(IStatus aStatus) {
List result = new ArrayList();
if (aStatus.isMultiStatus()) {
<BUG>IStatus[] children = aStatus.getChildren();

for (int i = 0; i < children.length; i++) {
IStatus currentChild = children[i];</BUG>
if (currentChild.isMultiStatus()) {

import org.eclipse.core.runtime.Status;
public class StatusUtil {
protected static List flatten(IStatus aStatus) {
List result = new ArrayList();
if (aStatus.isMultiStatus()) {
for (IStatus currentChild : aStatus.getChildren()) {
if (currentChild.isMultiStatus()) {
