Program: 103320
Project: 103320
Buggy source:
/** 
 * Loads all user interface configurations.
 */
public static void loadGuiConfigurations(){
  configService.addPropertyChangeListener(new ConfigurationChangeListener());
  String autoPopupProperty="String_Node_Str";
  String autoPopup=configService.getString(autoPopupProperty);
  if (autoPopup == null)   autoPopup=GuiActivator.getResources().getSettingsString(autoPopupProperty);
  if (autoPopup != null && autoPopup.equalsIgnoreCase("String_Node_Str"))   autoPopupNewMessage=true;
  String messageCommandProperty="String_Node_Str";
  String messageCommand=configService.getString(messageCommandProperty);
  if (messageCommand == null)   messageCommand=GuiActivator.getResources().getSettingsString(messageCommandProperty);
  if (messageCommand == null || messageCommand.length() == 0)   sendMessageCommand=messageCommand;
  String callPanelShown=configService.getString("String_Node_Str");
  if (callPanelShown != null && callPanelShown.length() > 0) {
    isCallPanelShown=Boolean.parseBoolean(callPanelShown);
  }
  String showOffline=configService.getString("String_Node_Str");
  if (showOffline != null && showOffline.length() > 0) {
    isShowOffline=Boolean.parseBoolean(showOffline);
  }
  String isVisible=configService.getString("String_Node_Str");
  if (isVisible != null && isVisible.length() > 0) {
    isApplicationVisible=new Boolean(isVisible).booleanValue();
  }
  String quitWarningShown=configService.getString("String_Node_Str");
  if (quitWarningShown != null && quitWarningShown.length() > 0) {
    isQuitWarningShown=Boolean.parseBoolean(quitWarningShown);
  }
  String isSendTypingNotifProperty="String_Node_Str";
  String isSendTypingNotif=configService.getString(isSendTypingNotifProperty);
  if (isSendTypingNotif == null)   isSendTypingNotif=GuiActivator.getResources().getSettingsString(isSendTypingNotifProperty);
  if (isSendTypingNotif != null && isSendTypingNotif.length() > 0) {
    isSendTypingNotifications=Boolean.parseBoolean(isSendTypingNotif);
  }
  String isMoveContactConfirmationRequestedString=configService.getString("String_Node_Str");
  if (isMoveContactConfirmationRequestedString != null && isMoveContactConfirmationRequestedString.length() > 0) {
    isMoveContactConfirmationRequested=Boolean.parseBoolean(isMoveContactConfirmationRequestedString);
  }
  String isMultiChatWindowEnabledStringProperty="String_Node_Str";
  String isMultiChatWindowEnabledString=configService.getString(isMultiChatWindowEnabledStringProperty);
  if (isMultiChatWindowEnabledString == null)   isMultiChatWindowEnabledString=GuiActivator.getResources().getSettingsString(isMultiChatWindowEnabledStringProperty);
  if (isMultiChatWindowEnabledString != null && isMultiChatWindowEnabledString.length() > 0) {
    isMultiChatWindowEnabled=Boolean.parseBoolean(isMultiChatWindowEnabledString);
  }
  String isLeaveChatRoomOnWindowCloseEnabledStringProperty="String_Node_Str";
  String isLeaveChatRoomOnWindowCloseEnabledString=configService.getString(isLeaveChatRoomOnWindowCloseEnabledStringProperty);
  if (isLeaveChatRoomOnWindowCloseEnabledString == null)   isLeaveChatRoomOnWindowCloseEnabledString=GuiActivator.getResources().getSettingsString(isLeaveChatRoomOnWindowCloseEnabledStringProperty);
  if (isLeaveChatRoomOnWindowCloseEnabledString != null && isLeaveChatRoomOnWindowCloseEnabledString.length() > 0) {
    isLeaveChatRoomOnWindowCloseEnabled=new Boolean(isLeaveChatRoomOnWindowCloseEnabledString).booleanValue();
  }
  String isHistoryLoggingEnabledString=configService.getString("String_Node_Str");
  if (isHistoryLoggingEnabledString != null && isHistoryLoggingEnabledString.length() > 0) {
    isHistoryLoggingEnabled=Boolean.parseBoolean(isHistoryLoggingEnabledString);
  }
  String isHistoryShownStringProperty="String_Node_Str";
  String isHistoryShownString=configService.getString(isHistoryShownStringProperty);
  if (isHistoryShownString == null)   isHistoryShownString=GuiActivator.getResources().getSettingsString(isHistoryShownStringProperty);
  if (isHistoryShownString != null && isHistoryShownString.length() > 0) {
    isHistoryShown=Boolean.parseBoolean(isHistoryShownString);
  }
  String chatHistorySizeStringProperty="String_Node_Str";
  String chatHistorySizeString=configService.getString(chatHistorySizeStringProperty);
  if (chatHistorySizeString == null)   chatHistorySizeString=GuiActivator.getResources().getSettingsString(chatHistorySizeStringProperty);
  if (chatHistorySizeString != null && chatHistorySizeString.length() > 0) {
    chatHistorySize=Integer.parseInt(chatHistorySizeString);
  }
  String chatWriteAreaSizeStringProperty="String_Node_Str";
  String chatWriteAreaSizeString=configService.getString(chatWriteAreaSizeStringProperty);
  if (chatWriteAreaSizeString == null)   chatWriteAreaSizeString=GuiActivator.getResources().getSettingsString(chatWriteAreaSizeStringProperty);
  if (chatWriteAreaSizeString != null && chatWriteAreaSizeString.length() > 0) {
    chatWriteAreaSize=Integer.parseInt(chatWriteAreaSizeString);
  }
  String isTransparentWindowEnabledProperty="String_Node_Str";
  String isTransparentWindowEnabledString=configService.getString(isTransparentWindowEnabledProperty);
  if (isTransparentWindowEnabledString == null)   isTransparentWindowEnabledString=GuiActivator.getResources().getSettingsString(isTransparentWindowEnabledProperty);
  if (isTransparentWindowEnabledString != null && isTransparentWindowEnabledString.length() > 0) {
    isTransparentWindowEnabled=Boolean.parseBoolean(isTransparentWindowEnabledString);
  }
  String windowTransparencyProperty="String_Node_Str";
  String windowTransparencyString=configService.getString(windowTransparencyProperty);
  if (windowTransparencyString == null)   windowTransparencyString=GuiActivator.getResources().getSettingsString(windowTransparencyProperty);
  if (windowTransparencyString != null && windowTransparencyString.length() > 0) {
    windowTransparency=Integer.parseInt(windowTransparencyString);
  }
  String isWindowDecoratedProperty="String_Node_Str";
  String isWindowDecoratedString=configService.getString(isWindowDecoratedProperty);
  if (isWindowDecoratedString == null)   isWindowDecoratedString=GuiActivator.getResources().getSettingsString(isWindowDecoratedProperty);
  if (isWindowDecoratedString != null && isWindowDecoratedString.length() > 0) {
    isWindowDecorated=Boolean.parseBoolean(isWindowDecoratedString);
  }
  isChatToolbarVisible=configService.getBoolean("String_Node_Str",true);
  isChatStylebarVisible=configService.getBoolean("String_Node_Str",true);
  isShowSmileys=configService.getBoolean("String_Node_Str",true);
  lastContactParent=configService.getString("String_Node_Str");
  sendFileLastDir=configService.getString("String_Node_Str" + "String_Node_Str");
  isAddContactDisabled=configService.getBoolean("String_Node_Str" + "String_Node_Str",false);
  isRemoveContactDisabled=configService.getBoolean("String_Node_Str" + "String_Node_Str",false);
  String advancedConfigDisabledDefaultProp=GuiActivator.getResources().getSettingsString("String_Node_Str");
  boolean isAdvancedConfigDisabled=false;
  if (advancedConfigDisabledDefaultProp != null)   isAdvancedConfigDisabled=Boolean.parseBoolean(advancedConfigDisabledDefaultProp);
  isAdvancedAccountConfigDisabled=configService.getBoolean("String_Node_Str" + "String_Node_Str",isAdvancedConfigDisabled);
  defaultFontFamily=configService.getString("String_Node_Str");
  defaultFontSize=configService.getString("String_Node_Str");
  isDefaultFontBold=configService.getBoolean("String_Node_Str",isDefaultFontBold);
  isDefaultFontItalic=configService.getBoolean("String_Node_Str",isDefaultFontItalic);
  isDefaultFontUnderline=configService.getBoolean("String_Node_Str",isDefaultFontUnderline);
  defaultFontColor=configService.getInt("String_Node_Str",0);
}

Fixed version (ground truth):
/** 
 * Loads all user interface configurations.
 */
public static void loadGuiConfigurations(){
  configService.addPropertyChangeListener(new ConfigurationChangeListener());
  String autoPopupProperty="String_Node_Str";
  String autoPopup=configService.getString(autoPopupProperty);
  if (autoPopup == null)   autoPopup=GuiActivator.getResources().getSettingsString(autoPopupProperty);
  if (autoPopup != null && autoPopup.equalsIgnoreCase("String_Node_Str"))   autoPopupNewMessage=true;
  String messageCommandProperty="String_Node_Str";
  String messageCommand=configService.getString(messageCommandProperty);
  if (messageCommand == null)   messageCommand=GuiActivator.getResources().getSettingsString(messageCommandProperty);
  if (messageCommand == null || messageCommand.length() == 0)   sendMessageCommand=messageCommand;
  String callPanelShown=configService.getString("String_Node_Str");
  if (callPanelShown != null && callPanelShown.length() > 0) {
    isCallPanelShown=Boolean.parseBoolean(callPanelShown);
  }
  String showOffline=configService.getString("String_Node_Str");
  if (showOffline != null && showOffline.length() > 0) {
    isShowOffline=Boolean.parseBoolean(showOffline);
  }
  String isVisible=configService.getString("String_Node_Str");
  if (isVisible != null && isVisible.length() > 0) {
    isApplicationVisible=new Boolean(isVisible).booleanValue();
  }
  String quitWarningShown=configService.getString("String_Node_Str");
  if (quitWarningShown != null && quitWarningShown.length() > 0) {
    isQuitWarningShown=Boolean.parseBoolean(quitWarningShown);
  }
  String isSendTypingNotifProperty="String_Node_Str";
  String isSendTypingNotif=configService.getString(isSendTypingNotifProperty);
  if (isSendTypingNotif == null)   isSendTypingNotif=GuiActivator.getResources().getSettingsString(isSendTypingNotifProperty);
  if (isSendTypingNotif != null && isSendTypingNotif.length() > 0) {
    isSendTypingNotifications=Boolean.parseBoolean(isSendTypingNotif);
  }
  String isMoveContactConfirmationRequestedString=configService.getString("String_Node_Str");
  if (isMoveContactConfirmationRequestedString != null && isMoveContactConfirmationRequestedString.length() > 0) {
    isMoveContactConfirmationRequested=Boolean.parseBoolean(isMoveContactConfirmationRequestedString);
  }
  String isMultiChatWindowEnabledStringProperty="String_Node_Str";
  String isMultiChatWindowEnabledString=configService.getString(isMultiChatWindowEnabledStringProperty);
  if (isMultiChatWindowEnabledString == null)   isMultiChatWindowEnabledString=GuiActivator.getResources().getSettingsString(isMultiChatWindowEnabledStringProperty);
  if (isMultiChatWindowEnabledString != null && isMultiChatWindowEnabledString.length() > 0) {
    isMultiChatWindowEnabled=Boolean.parseBoolean(isMultiChatWindowEnabledString);
  }
  String isLeaveChatRoomOnWindowCloseEnabledStringProperty="String_Node_Str";
  String isLeaveChatRoomOnWindowCloseEnabledString=configService.getString(isLeaveChatRoomOnWindowCloseEnabledStringProperty);
  if (isLeaveChatRoomOnWindowCloseEnabledString == null)   isLeaveChatRoomOnWindowCloseEnabledString=GuiActivator.getResources().getSettingsString(isLeaveChatRoomOnWindowCloseEnabledStringProperty);
  if (isLeaveChatRoomOnWindowCloseEnabledString != null && isLeaveChatRoomOnWindowCloseEnabledString.length() > 0) {
    isLeaveChatRoomOnWindowCloseEnabled=new Boolean(isLeaveChatRoomOnWindowCloseEnabledString).booleanValue();
  }
  String isHistoryLoggingEnabledString=configService.getString("String_Node_Str");
  if (isHistoryLoggingEnabledString != null && isHistoryLoggingEnabledString.length() > 0) {
    isHistoryLoggingEnabled=Boolean.parseBoolean(isHistoryLoggingEnabledString);
  }
  String isHistoryShownStringProperty="String_Node_Str";
  String isHistoryShownString=configService.getString(isHistoryShownStringProperty);
  if (isHistoryShownString == null)   isHistoryShownString=GuiActivator.getResources().getSettingsString(isHistoryShownStringProperty);
  if (isHistoryShownString != null && isHistoryShownString.length() > 0) {
    isHistoryShown=Boolean.parseBoolean(isHistoryShownString);
  }
  String chatHistorySizeStringProperty="String_Node_Str";
  String chatHistorySizeString=configService.getString(chatHistorySizeStringProperty);
  if (chatHistorySizeString == null)   chatHistorySizeString=GuiActivator.getResources().getSettingsString(chatHistorySizeStringProperty);
  if (chatHistorySizeString != null && chatHistorySizeString.length() > 0) {
    chatHistorySize=Integer.parseInt(chatHistorySizeString);
  }
  String chatWriteAreaSizeStringProperty="String_Node_Str";
  String chatWriteAreaSizeString=configService.getString(chatWriteAreaSizeStringProperty);
  if (chatWriteAreaSizeString == null)   chatWriteAreaSizeString=GuiActivator.getResources().getSettingsString(chatWriteAreaSizeStringProperty);
  if (chatWriteAreaSizeString != null && chatWriteAreaSizeString.length() > 0) {
    chatWriteAreaSize=Integer.parseInt(chatWriteAreaSizeString);
  }
  String isTransparentWindowEnabledProperty="String_Node_Str";
  String isTransparentWindowEnabledString=configService.getString(isTransparentWindowEnabledProperty);
  if (isTransparentWindowEnabledString == null)   isTransparentWindowEnabledString=GuiActivator.getResources().getSettingsString(isTransparentWindowEnabledProperty);
  if (isTransparentWindowEnabledString != null && isTransparentWindowEnabledString.length() > 0) {
    isTransparentWindowEnabled=Boolean.parseBoolean(isTransparentWindowEnabledString);
  }
  String windowTransparencyProperty="String_Node_Str";
  String windowTransparencyString=configService.getString(windowTransparencyProperty);
  if (windowTransparencyString == null)   windowTransparencyString=GuiActivator.getResources().getSettingsString(windowTransparencyProperty);
  if (windowTransparencyString != null && windowTransparencyString.length() > 0) {
    windowTransparency=Integer.parseInt(windowTransparencyString);
  }
  String isWindowDecoratedProperty="String_Node_Str";
  String isWindowDecoratedString=configService.getString(isWindowDecoratedProperty);
  if (isWindowDecoratedString == null)   isWindowDecoratedString=GuiActivator.getResources().getSettingsString(isWindowDecoratedProperty);
  if (isWindowDecoratedString != null && isWindowDecoratedString.length() > 0) {
    isWindowDecorated=Boolean.parseBoolean(isWindowDecoratedString);
  }
  isChatToolbarVisible=configService.getBoolean("String_Node_Str",true);
  isChatStylebarVisible=configService.getBoolean("String_Node_Str",true);
  isShowSmileys=configService.getBoolean("String_Node_Str",true);
  lastContactParent=configService.getString("String_Node_Str");
  sendFileLastDir=configService.getString("String_Node_Str" + "String_Node_Str");
  isAddContactDisabled=configService.getBoolean("String_Node_Str" + "String_Node_Str",false);
  isRemoveContactDisabled=configService.getBoolean("String_Node_Str" + "String_Node_Str",false);
  String advancedConfigDisabledDefaultProp=GuiActivator.getResources().getSettingsString("String_Node_Str");
  boolean isAdvancedConfigDisabled=false;
  if (advancedConfigDisabledDefaultProp != null)   isAdvancedConfigDisabled=Boolean.parseBoolean(advancedConfigDisabledDefaultProp);
  isAdvancedAccountConfigDisabled=configService.getBoolean("String_Node_Str" + "String_Node_Str",isAdvancedConfigDisabled);
  defaultFontFamily=configService.getString("String_Node_Str");
  defaultFontSize=configService.getString("String_Node_Str");
  isDefaultFontBold=configService.getBoolean("String_Node_Str",isDefaultFontBold);
  isDefaultFontItalic=configService.getBoolean("String_Node_Str",isDefaultFontItalic);
  isDefaultFontUnderline=configService.getBoolean("String_Node_Str",isDefaultFontUnderline);
  int colorSetting=configService.getInt("String_Node_Str",-1);
  if (colorSetting != -1)   defaultFontColor=colorSetting;
}