Program: 45776
Project: 45776
Buggy source:
/** 
 * Creates new form ImportSessionFrame 
 */
public ImportSessionFrame(){
  initComponents();
  tableModel=(DefaultTableModel)importTable.getModel();
  importTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  importTable.getSelectionModel().addListSelectionListener(new ListSelectionListener(){
    public void valueChanged(    ListSelectionEvent e){
      if (e.getValueIsAdjusting()) {
        return;
      }
      int row=importTable.getSelectedRow();
      boolean validSelection=(row >= 0);
      editB.setEnabled(validSelection);
      removeB.setEnabled(validSelection);
    }
  }
);
  importTable.getModel().addTableModelListener(new TableModelListener(){
    public void tableChanged(    TableModelEvent tme){
      boolean models=importTable.getModel().getRowCount() > 0;
    }
  }
);
  try {
    File lastModelFile=getLastModelFile();
    if (lastModelFile.exists()) {
      DataInputStream in=new DataInputStream(new FileInputStream(lastModelFile));
      String str;
      if (in.readBoolean()) {
        str=in.readUTF();
        lastModelDir=new File(str);
      }
 else {
        lastModelDir=null;
      }
      if (in.readBoolean()) {
        str=in.readUTF();
        compiledDir=new File(str);
      }
 else {
        compiledDir=null;
      }
      in.close();
    }
  }
 catch (  Exception ex) {
    lastModelDir=null;
    LOGGER.log(Level.INFO,null,ex);
  }
  Collection<ServerSessionManager> servers=LoginManager.getAll();
  for (  ServerSessionManager server : servers) {
    targetServerSelector.addItem(server);
  }
  importFrame=new ModelImporterFrame(this,lastModelDir);
}

Fixed version (ground truth):
/** 
 * Creates new form ImportSessionFrame 
 */
public ImportSessionFrame(){
  initComponents();
  tableModel=(DefaultTableModel)importTable.getModel();
  tableModel.setColumnIdentifiers(new Object[]{BUNDLE.getString("String_Node_Str"),BUNDLE.getString("String_Node_Str")});
  importTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  importTable.getSelectionModel().addListSelectionListener(new ListSelectionListener(){
    public void valueChanged(    ListSelectionEvent e){
      if (e.getValueIsAdjusting()) {
        return;
      }
      int row=importTable.getSelectedRow();
      boolean validSelection=(row >= 0);
      editB.setEnabled(validSelection);
      removeB.setEnabled(validSelection);
    }
  }
);
  importTable.getModel().addTableModelListener(new TableModelListener(){
    public void tableChanged(    TableModelEvent tme){
      boolean models=importTable.getModel().getRowCount() > 0;
    }
  }
);
  try {
    File lastModelFile=getLastModelFile();
    if (lastModelFile.exists()) {
      DataInputStream in=new DataInputStream(new FileInputStream(lastModelFile));
      String str;
      if (in.readBoolean()) {
        str=in.readUTF();
        lastModelDir=new File(str);
      }
 else {
        lastModelDir=null;
      }
      if (in.readBoolean()) {
        str=in.readUTF();
        compiledDir=new File(str);
      }
 else {
        compiledDir=null;
      }
      in.close();
    }
  }
 catch (  Exception ex) {
    lastModelDir=null;
    LOGGER.log(Level.INFO,null,ex);
  }
  Collection<ServerSessionManager> servers=LoginManager.getAll();
  for (  ServerSessionManager server : servers) {
    targetServerSelector.addItem(server);
  }
  importFrame=new ModelImporterFrame(this,lastModelDir);
}