Program: 135016
Project: 135016
Buggy source:
public void actionPerformed(java.awt.event.ActionEvent e){
  if (e.getSource() == LoggingClient.this.getConnectMenuItem()) {
    if (connectMenuItem.getText().compareTo("String_Node_Str") == 0) {
      connect();
    }
 else {
      LoggingClient.this.autoReconnectMI.setState(false);
      LoggingClient.this.engine.enableAutoReconnection(false);
      disconnect();
    }
  }
 else   if (e.getSource() == LoggingClient.this.getLoadMenuItem()) {
    getLCModel1().loadFromFile(null);
  }
 else   if (e.getSource() == LoggingClient.this.getLoadURLMenuItem()) {
    getLCModel1().loadFromURL();
  }
 else   if (e.getSource() == LoggingClient.this.getLoadURLMenuItem()) {
    getLCModel1().loadFromURL();
  }
 else   if (e.getSource() == LoggingClient.this.getLoadDBMenuItem()) {
    QueryDlg dlg=new QueryDlg(archive,LoggingClient.this);
    dlg.setVisible(true);
  }
 else   if (e.getSource() == LoggingClient.this.getClearAllMenuItem()) {
    getLCModel1().clearAll();
  }
 else   if (e.getSource() == LoggingClient.this.getExitMenuItem()) {
    connExit(e);
  }
 else   if (e.getSource() == LoggingClient.this.getFieldsMenuItem()) {
    connFields(e);
  }
 else   if (e.getSource() == LoggingClient.this.editFiltersMenuItem) {
    editFilters(e);
  }
 else   if (e.getSource() == LoggingClient.this.loadFiltersMenuItem) {
    loadFilters();
  }
 else   if (e.getSource() == LoggingClient.this.saveFiltersMenuItem) {
    if (filterFileName != null)     if (filterFileName.length() > 0)     saveFilters(filterFileName);
  }
 else   if (e.getSource() == LoggingClient.this.saveAsFiltersMenuItem) {
    saveAsFilters();
  }
 else   if (e.getSource() == LoggingClient.this.logLevelCB) {
    getLCModel1().setLogLevel(logLevelCB.getSelectedIndex());
    getLCModel1().invalidateVisibleLogs();
  }
 else   if (e.getSource() == LoggingClient.this.searchBtn || e.getSource() == searchMenuItem) {
    if (searchDialog == null) {
      searchDialog=new SearchDialog(LoggingClient.this);
    }
    searchDialog.setVisible(true);
  }
 else   if (e.getSource() == LoggingClient.this.searchNextMenuItem) {
    if (searchDialog != null) {
      searchDialog.search();
    }
 else {
      searchNextMenuItem.setEnabled(false);
    }
  }
 else   if (e.getSource() == LoggingClient.this.viewToolbarMI) {
    toolBar.setVisible(viewToolbarMI.getState());
  }
 else   if (e.getSource() == LoggingClient.this.statisticsMenuItem) {
    StatsDlg statsDlg=new StatsDlg(LoggingClient.this);
  }
 else   if (e.getSource() == viewErrorLogMI) {
    if (ErrorLogDialog.getErrorLogDlg(false) != null)     ErrorLogDialog.getErrorLogDlg(false).setVisible(true);
  }
 else   if (e.getSource() == LoggingClient.this.viewStatusAreaMI) {
    getStatusAreaPanel().setVisible(viewStatusAreaMI.getState());
    if (viewStatusAreaMI.getState()) {
      getJSplitPane1().setDividerLocation(getHeight() - 150);
    }
 else {
      getJSplitPane1().setDividerLocation(getHeight());
    }
  }
 else   if (e.getSource() == LoggingClient.this.viewDetailedInfoMI) {
    getDeatailedInfoPanel().setVisible(viewDetailedInfoMI.getState());
    if (viewDetailedInfoMI.getState()) {
      int w=getLogTable().getWidth();
      getJSplitPane2().setDividerLocation(getJSplitPane2().getWidth() - w / 3);
    }
 else {
      getJSplitPane2().setDividerLocation(getJSplitPane2().getWidth());
    }
  }
 else   if (e.getSource() == LoggingClient.this.autoReconnectMI) {
    if (LoggingClient.this.engine != null) {
      LoggingClient.this.engine.enableAutoReconnection(LoggingClient.this.autoReconnectMI.getState());
    }
  }
 else   if (e.getSource() == LoggingClient.this.shortDateViewMI) {
    logEntryTable.setShortDateFormat(LoggingClient.this.shortDateViewMI.getState());
  }
 else   if (e.getSource() == LoggingClient.this.pauseB) {
    pauseBtnPaused=!pauseBtnPaused;
    tableModel.scrollLock(pauseBtnPaused);
    if (pauseBtnPaused) {
      pauseB.setIcon(playIcon);
      pauseB.setText("String_Node_Str");
    }
 else {
      pauseB.setIcon(pauseIcon);
      pauseB.setText("String_Node_Str");
    }
  }
 else   if (e.getSource() == LoggingClient.this.suspendMI) {
    getEngine().setSupended(suspendMI.isSelected());
  }
 else   if (e.getSource() == LoggingClient.this.prefsMI) {
    ExpertPrefsDlg dlg=new ExpertPrefsDlg(LoggingClient.this,userPreferences.getMaxNumOfLogs(),userPreferences.getMinuteTimeFrame());
    if (dlg.okPressed()) {
      userPreferences.setTimeFrame(dlg.getTimeFrame());
      userPreferences.setMaxLogs(dlg.getMaxNumOfLogs());
    }
  }
 else {
    System.err.println("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
public void actionPerformed(java.awt.event.ActionEvent e){
  if (e.getSource() == LoggingClient.this.getConnectMenuItem()) {
    if (connectMenuItem.getText().compareTo("String_Node_Str") == 0) {
      connect();
    }
 else {
      LoggingClient.this.autoReconnectMI.setState(false);
      LoggingClient.this.engine.enableAutoReconnection(false);
      disconnect();
    }
  }
 else   if (e.getSource() == LoggingClient.this.getLoadMenuItem()) {
    getLCModel1().loadFromFile(null);
  }
 else   if (e.getSource() == LoggingClient.this.getLoadURLMenuItem()) {
    getLCModel1().loadFromURL();
  }
 else   if (e.getSource() == LoggingClient.this.getLoadURLMenuItem()) {
    getLCModel1().loadFromURL();
  }
 else   if (e.getSource() == LoggingClient.this.getLoadDBMenuItem()) {
    QueryDlg dlg=new QueryDlg(archive,LoggingClient.this);
    dlg.setVisible(true);
  }
 else   if (e.getSource() == LoggingClient.this.getClearAllMenuItem()) {
    getLCModel1().clearAll();
  }
 else   if (e.getSource() == LoggingClient.this.getExitMenuItem()) {
    connExit(e);
  }
 else   if (e.getSource() == LoggingClient.this.getFieldsMenuItem()) {
    connFields(e);
  }
 else   if (e.getSource() == LoggingClient.this.editFiltersMenuItem) {
    editFilters(e);
  }
 else   if (e.getSource() == LoggingClient.this.loadFiltersMenuItem) {
    loadFilters();
  }
 else   if (e.getSource() == LoggingClient.this.saveFiltersMenuItem) {
    if (filterFileName != null)     if (filterFileName.length() > 0)     saveFilters(filterFileName);
  }
 else   if (e.getSource() == LoggingClient.this.saveAsFiltersMenuItem) {
    saveAsFilters();
  }
 else   if (e.getSource() == LoggingClient.this.logLevelCB) {
    getLCModel1().setLogLevel(logLevelCB.getSelectedIndex());
    getLCModel1().invalidateVisibleLogs();
  }
 else   if (e.getSource() == LoggingClient.this.searchBtn || e.getSource() == searchMenuItem) {
    if (searchDialog == null) {
      searchDialog=new SearchDialog(LoggingClient.this);
    }
    searchDialog.setVisible(true);
  }
 else   if (e.getSource() == LoggingClient.this.searchNextMenuItem) {
    if (searchDialog != null) {
      searchDialog.search();
    }
 else {
      searchNextMenuItem.setEnabled(false);
    }
  }
 else   if (e.getSource() == LoggingClient.this.viewToolbarMI) {
    toolBar.setVisible(viewToolbarMI.getState());
  }
 else   if (e.getSource() == LoggingClient.this.statisticsMenuItem) {
    StatsDlg statsDlg=new StatsDlg(LoggingClient.this);
  }
 else   if (e.getSource() == viewErrorLogMI) {
    if (ErrorLogDialog.getErrorLogDlg(false) != null)     ErrorLogDialog.getErrorLogDlg(false).setVisible(true);
  }
 else   if (e.getSource() == LoggingClient.this.viewStatusAreaMI) {
    getStatusAreaPanel().setVisible(viewStatusAreaMI.getState());
    if (viewStatusAreaMI.getState()) {
      getJSplitPane1().setDividerLocation(getHeight() - 150);
    }
 else {
      getJSplitPane1().setDividerLocation(getHeight());
    }
  }
 else   if (e.getSource() == LoggingClient.this.viewDetailedInfoMI) {
    getDeatailedInfoPanel().setVisible(viewDetailedInfoMI.getState());
    if (viewDetailedInfoMI.getState()) {
      int w=getLogTable().getWidth();
      getJSplitPane2().setDividerLocation(getJSplitPane2().getWidth() - w / 3);
    }
 else {
      getJSplitPane2().setDividerLocation(getJSplitPane2().getWidth());
    }
  }
 else   if (e.getSource() == LoggingClient.this.autoReconnectMI) {
    if (LoggingClient.this.engine != null) {
      LoggingClient.this.engine.enableAutoReconnection(LoggingClient.this.autoReconnectMI.getState());
    }
  }
 else   if (e.getSource() == LoggingClient.this.shortDateViewMI) {
    logEntryTable.setShortDateFormat(LoggingClient.this.shortDateViewMI.getState());
  }
 else   if (e.getSource() == LoggingClient.this.pauseB) {
    pauseBtnPaused=!pauseBtnPaused;
    tableModel.scrollLock(pauseBtnPaused);
    if (pauseBtnPaused) {
      pauseB.setIcon(playIcon);
      pauseB.setText("String_Node_Str");
    }
 else {
      pauseB.setIcon(pauseIcon);
      pauseB.setText("String_Node_Str");
    }
  }
 else   if (e.getSource() == LoggingClient.this.suspendMI) {
    getEngine().setSupended(suspendMI.isSelected());
  }
 else   if (e.getSource() == LoggingClient.this.prefsMI) {
    ExpertPrefsDlg dlg=new ExpertPrefsDlg(LoggingClient.this,userPreferences.getMaxNumOfLogs(),userPreferences.getMinuteTimeFrame());
    if (dlg.okPressed()) {
      userPreferences.setMaxLogs(dlg.getMaxNumOfLogs());
      userPreferences.setTimeFrame(dlg.getTimeFrame());
      getLCModel1().setMaxLog(userPreferences.getMaxNumOfLogs());
      getLCModel1().setTimeFrame(userPreferences.getMillisecondsTimeFrame());
    }
  }
 else {
    System.err.println("String_Node_Str" + e);
  }
}