Program: 20233
Project: 20233
Buggy source:
@Override public final View getChildView(final int groupPosition,int childPosition,boolean isLastChild,View convertView,final ViewGroup parent){
  GroupInfo info=getGroupInfo(groupPosition);
  if (info.animating) {
    if (convertView == null) {
      convertView=new DummyView(parent.getContext());
      convertView.setLayoutParams(new ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT,0));
    }
    if (childPosition < info.firstChildPosition) {
      convertView.getLayoutParams().height=0;
      return convertView;
    }
    final ExpandableListView listView=(ExpandableListView)parent;
    DummyView dummyView=(DummyView)convertView;
    dummyView.clearViews();
    dummyView.setDivider(listView.getDivider(),parent.getMeasuredWidth(),listView.getDividerHeight());
    final int measureSpecW=MeasureSpec.makeMeasureSpec(parent.getWidth(),MeasureSpec.EXACTLY);
    final int measureSpecH=MeasureSpec.makeMeasureSpec(0,MeasureSpec.UNSPECIFIED);
    int totalHeight=0;
    int clipHeight=parent.getHeight();
    final int len=getRealChildrenCount(groupPosition);
    for (int i=info.firstChildPosition; i < len; i++) {
      View childView=getRealChildView(groupPosition,i,(i == len - 1),null,parent);
      childView.measure(measureSpecW,measureSpecH);
      totalHeight+=childView.getMeasuredHeight();
      if (totalHeight < clipHeight) {
        dummyView.addFakeView(childView);
      }
 else {
        int averageHeight=totalHeight / (i + 1);
        totalHeight+=(len - i - 1) * averageHeight;
        break;
      }
    }
    if (info.expanding) {
      ExpandAnimation ani=new ExpandAnimation(dummyView,0,totalHeight,info);
      ani.setDuration(this.parent.getAnimationDuration());
      ani.setAnimationListener(new AnimationListener(){
        @Override public void onAnimationEnd(        Animation animation){
          stopAnimation(groupPosition);
          notifyDataSetChanged();
        }
        @Override public void onAnimationRepeat(        Animation animation){
        }
        @Override public void onAnimationStart(        Animation animation){
        }
      }
);
      dummyView.startAnimation(ani);
    }
 else {
      ExpandAnimation ani=new ExpandAnimation(dummyView,info.dummyHeight,0,info);
      ani.setDuration(this.parent.getAnimationDuration());
      ani.setAnimationListener(new AnimationListener(){
        @Override public void onAnimationEnd(        Animation animation){
          stopAnimation(groupPosition);
          listView.collapseGroup(groupPosition);
          notifyDataSetChanged();
        }
        @Override public void onAnimationRepeat(        Animation animation){
        }
        @Override public void onAnimationStart(        Animation animation){
        }
      }
);
      dummyView.startAnimation(ani);
    }
    return convertView;
  }
 else {
    return getRealChildView(groupPosition,childPosition,isLastChild,convertView,parent);
  }
}

Fixed version (ground truth):
@Override public final View getChildView(final int groupPosition,int childPosition,boolean isLastChild,View convertView,final ViewGroup parent){
  GroupInfo info=getGroupInfo(groupPosition);
  if (info.animating) {
    if (convertView == null) {
      convertView=new DummyView(parent.getContext());
      convertView.setLayoutParams(new ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT,0));
    }
    if (childPosition < info.firstChildPosition) {
      convertView.getLayoutParams().height=0;
      return convertView;
    }
    final ExpandableListView listView=(ExpandableListView)parent;
    DummyView dummyView=(DummyView)convertView;
    dummyView.clearViews();
    dummyView.setDivider(listView.getDivider(),parent.getMeasuredWidth(),listView.getDividerHeight());
    final int measureSpecW=MeasureSpec.makeMeasureSpec(parent.getWidth(),MeasureSpec.EXACTLY);
    final int measureSpecH=MeasureSpec.makeMeasureSpec(0,MeasureSpec.UNSPECIFIED);
    int totalHeight=0;
    int clipHeight=parent.getHeight();
    final int len=getRealChildrenCount(groupPosition);
    for (int i=info.firstChildPosition; i < len; i++) {
      View childView=getRealChildView(groupPosition,i,(i == len - 1),null,parent);
      childView.measure(measureSpecW,measureSpecH);
      totalHeight+=childView.getMeasuredHeight();
      if (totalHeight < clipHeight) {
        dummyView.addFakeView(childView);
      }
 else {
        int averageHeight=totalHeight / (i + 1);
        totalHeight+=(len - i - 1) * averageHeight;
        break;
      }
    }
    if (info.expanding) {
      ExpandAnimation ani=new ExpandAnimation(dummyView,1,totalHeight,info);
      ani.setDuration(this.parent.getAnimationDuration());
      ani.setAnimationListener(new AnimationListener(){
        @Override public void onAnimationEnd(        Animation animation){
          stopAnimation(groupPosition);
          notifyDataSetChanged();
        }
        @Override public void onAnimationRepeat(        Animation animation){
        }
        @Override public void onAnimationStart(        Animation animation){
        }
      }
);
      dummyView.startAnimation(ani);
    }
 else {
      if (info.dummyHeight == -1) {
        info.dummyHeight=totalHeight;
      }
      ExpandAnimation ani=new ExpandAnimation(dummyView,info.dummyHeight,0,info);
      ani.setDuration(this.parent.getAnimationDuration());
      ani.setAnimationListener(new AnimationListener(){
        @Override public void onAnimationEnd(        Animation animation){
          stopAnimation(groupPosition);
          listView.collapseGroup(groupPosition);
          notifyDataSetChanged();
        }
        @Override public void onAnimationRepeat(        Animation animation){
        }
        @Override public void onAnimationStart(        Animation animation){
        }
      }
);
      dummyView.startAnimation(ani);
    }
    return convertView;
  }
 else {
    return getRealChildView(groupPosition,childPosition,isLastChild,convertView,parent);
  }
}