Program: 142710
Project: 142710
Buggy source:
private void loadSamples(){
  net.miginfocom.swing.MigLayout migLayout1=new net.miginfocom.swing.MigLayout();
  migLayout1.setColumnConstraints("String_Node_Str");
  samplesPanel.setLayout(migLayout1);
  String[] samplePath=new String[3];
  samplePath[0]="String_Node_Str";
  samplePath[1]="String_Node_Str";
  samplePath[2]="String_Node_Str";
  String[] sampleTooltip=new String[3];
  sampleTooltip[0]="String_Node_Str";
  sampleTooltip[1]="String_Node_Str";
  sampleTooltip[2]="String_Node_Str";
  try {
    for (int i=0; i < samplePath.length; i++) {
      String s=samplePath[i];
      String tooltip=sampleTooltip[i];
      final InputStream stream=WelcomeTopComponent.class.getResourceAsStream(s);
      String fileName=s.substring(s.lastIndexOf('/') + 1,s.length());
      final String importer=fileName.substring(fileName.lastIndexOf('.'),fileName.length());
      JXHyperlink fileLink=new JXHyperlink(new AbstractAction(){
        public void actionPerformed(        ActionEvent e){
          try {
            stream.reset();
          }
 catch (          IOException ex) {
            Exceptions.printStackTrace(ex);
          }
          ImportControllerUI importController=Lookup.getDefault().lookup(ImportControllerUI.class);
          importController.importStream(stream,importer);
          WelcomeTopComponent.this.close();
        }
      }
);
      fileLink.setText(fileName);
      fileLink.setToolTipText(tooltip);
      fileLink.putClientProperty(LINK_PATH,importer);
      samplesPanel.add(fileLink,"String_Node_Str");
    }
  }
 catch (  Exception ex) {
    Exceptions.printStackTrace(ex);
  }
}

Fixed version (ground truth):
private void loadSamples(){
  net.miginfocom.swing.MigLayout migLayout1=new net.miginfocom.swing.MigLayout();
  migLayout1.setColumnConstraints("String_Node_Str");
  samplesPanel.setLayout(migLayout1);
  String[] samplePath=new String[3];
  samplePath[0]="String_Node_Str";
  samplePath[1]="String_Node_Str";
  samplePath[2]="String_Node_Str";
  String[] sampleTooltip=new String[3];
  sampleTooltip[0]="String_Node_Str";
  sampleTooltip[1]="String_Node_Str";
  sampleTooltip[2]="String_Node_Str";
  try {
    for (int i=0; i < samplePath.length; i++) {
      String s=samplePath[i];
      String tooltip=sampleTooltip[i];
      final InputStream stream=WelcomeTopComponent.class.getResourceAsStream(s);
      String fileName=s.substring(s.lastIndexOf('/') + 1,s.length());
      final String importer=fileName.substring(fileName.lastIndexOf('.'),fileName.length());
      JXHyperlink fileLink=new JXHyperlink(new AbstractAction(){
        public void actionPerformed(        ActionEvent e){
          try {
            stream.reset();
          }
 catch (          IOException ex) {
          }
          ImportControllerUI importController=Lookup.getDefault().lookup(ImportControllerUI.class);
          importController.importStream(stream,importer);
          WelcomeTopComponent.this.close();
        }
      }
);
      fileLink.setText(fileName);
      fileLink.setToolTipText(tooltip);
      fileLink.putClientProperty(LINK_PATH,importer);
      samplesPanel.add(fileLink,"String_Node_Str");
    }
  }
 catch (  Exception ex) {
    Exceptions.printStackTrace(ex);
  }
}