Program: 2943
Project: 2943
Buggy source:
private void confirmAndWipe(){
  boolean confirmed=true;
  if (confirmed) {
    _lsCanvas=new LargeStringCanvas("String_Node_Str");
    _cmdExit=new Command(l10n.getString(L10nConstants.keys.MENU_EXIT),Command.EXIT,1);
    _lsCanvas.addCommand(_cmdExit);
    _lsCanvas.setCommandListener(this);
    Display.getDisplay(_midlet).setCurrent(_lsCanvas);
    try {
      _lsCanvas.setLargeString(l10n.getString(L10nConstants.keys.WIPE_STATUS_INPROGRESS));
      _wControl=new WipeController();
      _lsCanvas.setLargeString(l10n.getString(L10nConstants.keys.WIPE_STATUS_PERSONAL));
      currentType=l10n.getString(L10nConstants.keys.WIPE_TYPE_PERSONAL);
      _wControl.wipePIMData(_cbContacts.isChecked(),_cbCalendar.isChecked(),_cbCalendar.isChecked());
      try {
        if (_cbPhotos.isChecked()) {
          currentType=l10n.getString(L10nConstants.keys.WIPE_TYPE_PHOTOS);
          _lsCanvas.setLargeString(l10n.getString(L10nConstants.keys.WIPE_STATUS_PHOTOS));
          _wControl.wipeMedia(WipeController.TYPE_PHOTOS,false,this);
          _wControl.wipeMedia(WipeController.TYPE_PHOTOS,true,this);
          _lsCanvas.setLargeString(l10n.getString(L10nConstants.keys.WIPE_STATUS_VIDEOS));
          _wControl.wipeMedia(WipeController.TYPE_VIDEOS,false,this);
          _wControl.wipeMedia(WipeController.TYPE_VIDEOS,true,this);
          _lsCanvas.setLargeString("String_Node_Str");
          _wControl.wipeMedia(WipeController.TYPE_RECORDINGS,false,this);
          _wControl.wipeMedia(WipeController.TYPE_RECORDINGS,true,this);
        }
      }
 catch (      Exception e) {
        _lsCanvas.setLargeString(e.getMessage());
      }
      try {
        if (_cbAllStorage.isChecked()) {
          currentType=l10n.getString(L10nConstants.keys.WIPE_TYPE_FILES);
          _lsCanvas.setLargeString(l10n.getString(L10nConstants.keys.WIPE_STATUS_FILES));
          _wControl.wipeMedia("String_Node_Str",false,this);
          _wControl.wipeAllRootPaths(this);
        }
      }
 catch (      Exception e) {
        _lsCanvas.setLargeString(e.getMessage());
      }
      String msg=l10n.getString(L10nConstants.keys.WIPE_MSG_SUCCESS);
      if (successCount > 0)       msg+="String_Node_Str" + successCount + ' '+ l10n.getString(L10nConstants.keys.WIPE_STATUS_FILES_DELETED);
 else       msg+="String_Node_Str" + "String_Node_Str";
      if (errCount > 0)       msg+="String_Node_Str" + errCount + ' '+ l10n.getString(L10nConstants.keys.WIPE_STATUS_ERRORS);
      _lsCanvas.setLargeString(msg);
    }
 catch (    Exception e) {
      String msg=e.getMessage();
      _lsCanvas.setLargeString(msg);
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
private void confirmAndWipe(){
  boolean confirmed=true;
  if (confirmed) {
    _lsCanvas=new LargeStringCanvas("String_Node_Str");
    _cmdExit=new Command(l10n.getString(L10nConstants.keys.MENU_EXIT),Command.EXIT,1);
    _lsCanvas.addCommand(_cmdExit);
    _lsCanvas.setCommandListener(this);
    Display.getDisplay(_midlet).setCurrent(_lsCanvas);
    try {
      String msg="String_Node_Str";
      if (_cbContacts.isChecked() || _cbCalendar.isChecked() || _cbPhotos.isChecked()|| _cbAllStorage.isChecked()) {
        WipeController.doWipe(_cbContacts.isChecked(),_cbCalendar.isChecked(),_cbPhotos.isChecked(),_cbAllStorage.isChecked(),_lsCanvas,this);
        if (_cbZeroStorage.isChecked()) {
          _lsCanvas.setLargeString(l10n.getString(L10nConstants.keys.KEY_ZERO_FILES));
          WipeController.zeroFillStorage(FileSystemRegistry.listRoots(),this);
        }
        if (successCount > 0) {
          msg+=l10n.getString(L10nConstants.keys.WIPE_MSG_SUCCESS);
          msg+="String_Node_Str" + successCount + ' '+ l10n.getString(L10nConstants.keys.WIPE_STATUS_FILES_DELETED);
        }
 else {
          msg+=l10n.getString(L10nConstants.keys.WIPE_MSG_COMPLETE);
          msg+="String_Node_Str" + "String_Node_Str";
        }
      }
 else {
        msg="String_Node_Str";
      }
      _lsCanvas.setLargeString(msg);
    }
 catch (    Exception e) {
      String msg=e.getMessage();
      _lsCanvas.setLargeString(msg);
      e.printStackTrace();
    }
  }
}