private void clearNulls() {
    for (int i = 0; i < c && i < view.length; i ++) {
      if (view[i] == null) {
        boolean isFound = false;
        for (int j = i +1; j < c && j < view.length; j ++) {
          if (view[j] != null) {
            isFound = true;
            view[i] = view[j];
            view[j] = null;
            break;
          }
        }
        if (!isFound) {
          c = i;
          break;
        }
      }
    }
  }