Program: 168530
Project: 168530
Buggy source:
/** 
 * Creates new form AllocationFileInfoPanel 
 */
public AllocationFileInfoPanel(final BaseHFSAllocationFileView afView){
  this.afView=afView;
  initComponents();
  Thread t=new Thread(new Runnable(){
    @Override public void run(){
      final long allocatedBlocks=afView.countAllocatedBlocks();
      SwingUtilities.invokeLater(new Runnable(){
        @Override public void run(){
          allocatedBlocksField.setText("String_Node_Str" + allocatedBlocks);
        }
      }
);
      final long freeBlocks=afView.countFreeBlocks();
      SwingUtilities.invokeLater(new Runnable(){
        @Override public void run(){
          freeBlocksField.setText("String_Node_Str" + freeBlocks);
        }
      }
);
    }
  }
);
  t.start();
  allocateButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      allocateButton.setEnabled(false);
      Thread t=new Thread(new Runnable(){
        @Override public void run(){
          try {
            long l=Long.parseLong(allocateSizeField.getText());
            CommonHFSExtentDescriptor[] descs=afView.findFreeSpace(l);
            if (descs != null) {
              final ArrayBuilder ab=new ArrayBuilder("String_Node_Str" + descs.length + "String_Node_Str");
              for (              CommonHFSExtentDescriptor desc : descs) {
                System.err.println("String_Node_Str");
                desc.print(System.err,"String_Node_Str");
                ab.add(desc.getStructElements());
              }
              SwingUtilities.invokeLater(new Runnable(){
                @Override public void run(){
                  resultScroller.setViewportView(new StructViewPanel("String_Node_Str",ab.getResult()));
                }
              }
);
            }
 else {
              JOptionPane.showMessageDialog(AllocationFileInfoPanel.this,"String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
            }
          }
 catch (          NumberFormatException ee) {
            JOptionPane.showMessageDialog(AllocationFileInfoPanel.this,"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
          }
catch (          Throwable t) {
            t.printStackTrace();
            GUIUtil.displayExceptionDialog(t,10,AllocationFileInfoPanel.this,"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
          }
 finally {
            SwingUtilities.invokeLater(new Runnable(){
              @Override public void run(){
                allocateButton.setEnabled(true);
              }
            }
);
          }
        }
      }
);
      t.start();
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Creates new form AllocationFileInfoPanel 
 */
public AllocationFileInfoPanel(final BaseHFSAllocationFileView afView){
  this.afView=afView;
  initComponents();
  Thread t=new Thread(new Runnable(){
    @Override public void run(){
      final ObjectContainer<Long> freeBlocks=new ObjectContainer<Long>((long)-1);
      final ObjectContainer<Long> usedBlocks=new ObjectContainer<Long>((long)-1);
      afView.countBlocks(freeBlocks,usedBlocks);
      SwingUtilities.invokeLater(new Runnable(){
        @Override public void run(){
          allocatedBlocksField.setText(usedBlocks.o.toString());
          freeBlocksField.setText(freeBlocks.o.toString());
        }
      }
);
    }
  }
);
  t.start();
  allocateButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      allocateButton.setEnabled(false);
      Thread t=new Thread(new Runnable(){
        @Override public void run(){
          try {
            long l=Long.parseLong(allocateSizeField.getText());
            CommonHFSExtentDescriptor[] descs=afView.findFreeSpace(l);
            if (descs != null) {
              final ArrayBuilder ab=new ArrayBuilder("String_Node_Str" + descs.length + "String_Node_Str");
              for (              CommonHFSExtentDescriptor desc : descs) {
                System.err.println("String_Node_Str");
                desc.print(System.err,"String_Node_Str");
                ab.add(desc.getStructElements());
              }
              SwingUtilities.invokeLater(new Runnable(){
                @Override public void run(){
                  resultScroller.setViewportView(new StructViewPanel("String_Node_Str",ab.getResult()));
                }
              }
);
            }
 else {
              JOptionPane.showMessageDialog(AllocationFileInfoPanel.this,"String_Node_Str","String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
            }
          }
 catch (          NumberFormatException ee) {
            JOptionPane.showMessageDialog(AllocationFileInfoPanel.this,"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
          }
catch (          Throwable t) {
            t.printStackTrace();
            GUIUtil.displayExceptionDialog(t,10,AllocationFileInfoPanel.this,"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
          }
 finally {
            SwingUtilities.invokeLater(new Runnable(){
              @Override public void run(){
                allocateButton.setEnabled(true);
              }
            }
);
          }
        }
      }
);
      t.start();
    }
  }
);
}