Program: 142171
Project: 142171
Buggy source:
private void showNextView(boolean resuming){
  if (currentPromptIsQuestion()) {
    if (!saveAnswersForCurrentScreen(EVALUATE_CONSTRAINTS)) {
      return;
    }
  }
  if (mFormController.getEvent() != FormEntryController.EVENT_END_OF_FORM) {
    int event;
    try {
      group_skip:       do {
        event=mFormController.stepToNextEvent(FormController.STEP_OVER_GROUP);
switch (event) {
case FormEntryController.EVENT_QUESTION:
case FormEntryController.EVENT_END_OF_FORM:
          View next=createView();
        if (!resuming) {
          showView(next,AnimationType.RIGHT);
        }
 else {
          showView(next,AnimationType.FADE,false);
        }
      break group_skip;
case FormEntryController.EVENT_PROMPT_NEW_REPEAT:
    createRepeatDialog();
  break group_skip;
case FormEntryController.EVENT_GROUP:
if (mFormController.indexIsInFieldList() && mFormController.getQuestionPrompts().length != 0) {
  View nextGroupView=createView();
  if (!resuming) {
    showView(nextGroupView,AnimationType.RIGHT);
  }
 else {
    showView(nextGroupView,AnimationType.FADE,false);
  }
  break group_skip;
}
break;
case FormEntryController.EVENT_REPEAT:
Log.i(TAG,"String_Node_Str" + mFormController.getFormIndex().getReference());
break;
case FormEntryController.EVENT_REPEAT_JUNCTURE:
Log.i(TAG,"String_Node_Str" + mFormController.getFormIndex().getReference());
break;
default :
Log.w(TAG,"String_Node_Str");
break;
}
}
 while (event != FormEntryController.EVENT_END_OF_FORM);
}
 catch (XPathTypeMismatchException e) {
Logger.exception(e);
CommCareActivity.createErrorDialog(this,e.getMessage(),EXIT);
}
}
 else {
mBeenSwiped=false;
}
}

Fixed version (ground truth):
private void showNextView(boolean resuming){
  if (currentPromptIsQuestion()) {
    if (!saveAnswersForCurrentScreen(EVALUATE_CONSTRAINTS)) {
      return;
    }
  }
  if (mFormController.getEvent() != FormEntryController.EVENT_END_OF_FORM) {
    int event;
    try {
      group_skip:       do {
        event=mFormController.stepToNextEvent(FormController.STEP_OVER_GROUP);
switch (event) {
case FormEntryController.EVENT_QUESTION:
          View next=createView();
        if (!resuming) {
          showView(next,AnimationType.RIGHT);
        }
 else {
          showView(next,AnimationType.FADE,false);
        }
      break group_skip;
case FormEntryController.EVENT_END_OF_FORM:
    Logger.log(AndroidLogger.SOFT_ASSERT,"String_Node_Str");
  showPreviousView(false);
break group_skip;
case FormEntryController.EVENT_PROMPT_NEW_REPEAT:
createRepeatDialog();
break group_skip;
case FormEntryController.EVENT_GROUP:
if (mFormController.indexIsInFieldList() && mFormController.getQuestionPrompts().length != 0) {
View nextGroupView=createView();
if (!resuming) {
showView(nextGroupView,AnimationType.RIGHT);
}
 else {
showView(nextGroupView,AnimationType.FADE,false);
}
break group_skip;
}
break;
case FormEntryController.EVENT_REPEAT:
Log.i(TAG,"String_Node_Str" + mFormController.getFormIndex().getReference());
break;
case FormEntryController.EVENT_REPEAT_JUNCTURE:
Log.i(TAG,"String_Node_Str" + mFormController.getFormIndex().getReference());
break;
default :
Log.w(TAG,"String_Node_Str");
break;
}
}
 while (event != FormEntryController.EVENT_END_OF_FORM);
}
 catch (XPathTypeMismatchException e) {
Logger.exception(e);
CommCareActivity.createErrorDialog(this,e.getMessage(),EXIT);
}
}
 else {
mBeenSwiped=false;
}
}