View[] newChildren = new View[added.length];
View[] newChildren = null; if (added != null) { newChildren = new View[added.length];
  protected boolean updateChildren(DocumentEvent.ElementChange ec,                                   DocumentEvent ev,                                   ViewFactory vf)  {    Element[] added = ec.getChildrenAdded();    Element[] removed = ec.getChildrenRemoved();    int index = ec.getIndex();    View[] newChildren = new View[added.length];    for (int i = 0; i < added.length; ++i)      newChildren[i] = vf.create(added[i]);    replace(index, removed.length, newChildren);    return true;  }