Program: 104181
Project: 104181
Buggy source:
/** 
 * @override {@link SwingWorker}{@link #done()} to perform UI changesafter the chat room join task has finished.
 */
protected void done(){
  String returnCode=null;
  try {
    returnCode=get();
  }
 catch (  InterruptedException ignore) {
  }
catch (  ExecutionException ignore) {
  }
  ConfigurationManager.updateChatRoomStatus(chatRoomWrapper.getParentProvider().getProtocolProvider(),chatRoomWrapper.getChatRoomID(),Constants.ONLINE_STATUS);
  String errorMessage=null;
  if (returnCode.equals(AUTHENTICATION_FAILED)) {
    ChatRoomAuthenticationWindow authWindow=new ChatRoomAuthenticationWindow(chatRoomWrapper);
    authWindow.setVisible(true);
  }
 else   if (returnCode.equals(REGISTRATION_REQUIRED)) {
    errorMessage=GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomWrapper.getChatRoomName()});
  }
 else   if (returnCode.equals(PROVIDER_NOT_REGISTERED)) {
    errorMessage=GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomWrapper.getChatRoomName()});
  }
 else   if (returnCode.equals(SUBSCRIPTION_ALREADY_EXISTS)) {
    errorMessage=GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomWrapper.getChatRoomName()});
  }
 else {
    errorMessage=GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomWrapper.getChatRoomName()});
  }
  if (!returnCode.equals(SUCCESS) && !returnCode.equals(AUTHENTICATION_FAILED)) {
    new ErrorDialog(GuiActivator.getUIService().getMainFrame(),GuiActivator.getResources().getI18NString("String_Node_Str"),errorMessage).showDialog();
  }
}

Fixed version (ground truth):
/** 
 * @override {@link SwingWorker}{@link #done()} to perform UI changesafter the chat room join task has finished.
 */
protected void done(){
  String returnCode=null;
  try {
    returnCode=get();
  }
 catch (  InterruptedException ignore) {
  }
catch (  ExecutionException ignore) {
  }
  ConfigurationManager.updateChatRoomStatus(chatRoomWrapper.getParentProvider().getProtocolProvider(),chatRoomWrapper.getChatRoomID(),Constants.ONLINE_STATUS);
  String errorMessage=null;
  if (AUTHENTICATION_FAILED.equals(returnCode)) {
    ChatRoomAuthenticationWindow authWindow=new ChatRoomAuthenticationWindow(chatRoomWrapper);
    authWindow.setVisible(true);
  }
 else   if (REGISTRATION_REQUIRED.equals(returnCode)) {
    errorMessage=GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomWrapper.getChatRoomName()});
  }
 else   if (PROVIDER_NOT_REGISTERED.equals(returnCode)) {
    errorMessage=GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomWrapper.getChatRoomName()});
  }
 else   if (SUBSCRIPTION_ALREADY_EXISTS.equals(returnCode)) {
    errorMessage=GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomWrapper.getChatRoomName()});
  }
 else {
    errorMessage=GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomWrapper.getChatRoomName()});
  }
  if (!SUCCESS.equals(returnCode) && !AUTHENTICATION_FAILED.equals(returnCode)) {
    new ErrorDialog(GuiActivator.getUIService().getMainFrame(),GuiActivator.getResources().getI18NString("String_Node_Str"),errorMessage).showDialog();
  }
}