Program: 188363
Project: 188363
Buggy source:
public void remove(final SelectedItems<IndexedRepresentation> selectedList,final AsyncCallback<ActionImpact> callback){
  Dialogs.showConfirmDialog(messages.representationRemoveTitle(),messages.representationRemoveMessage(),messages.dialogCancel(),messages.dialogYes(),new AsyncCallback<Boolean>(){
    @Override public void onSuccess(    Boolean confirmed){
      if (confirmed) {
        Dialogs.showPromptDialog(messages.outcomeDetailTitle(),null,null,messages.outcomeDetailPlaceholder(),RegExp.compile("String_Node_Str"),messages.cancelButton(),messages.confirmButton(),new AsyncCallback<String>(){
          @Override public void onFailure(          Throwable caught){
          }
          @Override public void onSuccess(          String details){
            BrowserService.Util.getInstance().deleteRepresentation(selectedList,details,new AsyncCallback<Void>(){
              @Override public void onSuccess(              Void result){
                Timer timer=new Timer(){
                  @Override public void run(){
                    if (aipId != null) {
                      HistoryUtils.openBrowse(aipId);
                    }
                    callback.onSuccess(ActionImpact.DESTROYED);
                  }
                }
;
                timer.schedule(RodaConstants.ACTION_TIMEOUT);
              }
              @Override public void onFailure(              Throwable caught){
                callback.onFailure(caught);
              }
            }
);
          }
        }
);
      }
    }
    @Override public void onFailure(    Throwable caught){
    }
  }
);
}

Fixed version (ground truth):
public void remove(final SelectedItems<IndexedRepresentation> selectedList,final AsyncCallback<ActionImpact> callback){
  Dialogs.showConfirmDialog(messages.representationRemoveTitle(),messages.representationRemoveMessage(),messages.dialogCancel(),messages.dialogYes(),new AsyncCallback<Boolean>(){
    @Override public void onSuccess(    Boolean confirmed){
      if (confirmed) {
        Dialogs.showPromptDialog(messages.outcomeDetailTitle(),null,null,messages.outcomeDetailPlaceholder(),RegExp.compile("String_Node_Str"),messages.cancelButton(),messages.confirmButton(),false,new AsyncCallback<String>(){
          @Override public void onFailure(          Throwable caught){
          }
          @Override public void onSuccess(          String details){
            BrowserService.Util.getInstance().deleteRepresentation(selectedList,details,new AsyncCallback<Void>(){
              @Override public void onSuccess(              Void result){
                Timer timer=new Timer(){
                  @Override public void run(){
                    if (aipId != null) {
                      HistoryUtils.openBrowse(aipId);
                    }
                    callback.onSuccess(ActionImpact.DESTROYED);
                  }
                }
;
                timer.schedule(RodaConstants.ACTION_TIMEOUT);
              }
              @Override public void onFailure(              Throwable caught){
                callback.onFailure(caught);
              }
            }
);
          }
        }
);
      }
    }
    @Override public void onFailure(    Throwable caught){
    }
  }
);
}