Program: 21094
Project: 21094
Buggy source:
public void controlEvent(final ControlEvent event){
  EventQueue.invokeLater(new Runnable(){
    public void run(){
switch (event.getID()) {
case ControlEvent.CONTROL_INIT_COMPLETE:
        logger.info("String_Node_Str");
      SimpleGUI.this.setWaiting(false);
    SimpleGUI.this.setEnabled(true);
  if (SimpleGuiConstants.GUI_CONFIG.getBooleanProperty(SimpleGuiConstants.PARAM_START_DOWNLOADS_AFTER_START,false)) {
    new Thread(){
      public void run(){
        this.setName("String_Node_Str");
        final ProgressController pc=new ProgressController(JDLocale.L("String_Node_Str","String_Node_Str"));
        pc.getBroadcaster().addListener(new ProgressControllerListener(){
          public void onProgressControllerEvent(          ProgressControllerEvent event){
            pc.setStatusText("String_Node_Str");
          }
        }
);
        pc.finalize(10 * 1000l);
        while (!pc.isFinished()) {
          try {
            Thread.sleep(1000);
          }
 catch (          InterruptedException e) {
            break;
          }
        }
        if (!pc.isAbort())         JDUtilities.getController().startDownloads();
      }
    }
.start();
  }
break;
case ControlEvent.CONTROL_PLUGIN_ACTIVE:
logger.info("String_Node_Str" + event.getSource());
setTitle(JDUtilities.getJDTitle());
break;
case ControlEvent.CONTROL_SYSTEM_EXIT:
SimpleGUI.this.setVisible(false);
SimpleGUI.this.dispose();
break;
case ControlEvent.CONTROL_PLUGIN_INACTIVE:
logger.info("String_Node_Str" + event.getSource());
setTitle(JDUtilities.getJDTitle());
break;
case ControlEvent.CONTROL_ALL_DOWNLOADS_FINISHED:
if (speedmeter != null) speedmeter.stop();
for (DownloadLink link : DownloadController.getInstance().getAllDownloadLinks()) {
if (link.getLinkStatus().hasStatus(LinkStatus.TODO)) {
logger.info("String_Node_Str");
return;
}
}
logger.info("String_Node_Str");
break;
case ControlEvent.CONTROL_DOWNLOAD_START:
Balloon.showIfHidden(JDLocale.L("String_Node_Str","String_Node_Str"),JDTheme.II("String_Node_Str",32,32),JDLocale.L("String_Node_Str","String_Node_Str"));
if (speedmeter != null) speedmeter.start();
break;
case ControlEvent.CONTROL_DOWNLOAD_STOP:
Balloon.showIfHidden(JDLocale.L("String_Node_Str","String_Node_Str"),JDTheme.II("String_Node_Str",32,32),JDLocale.L("String_Node_Str","String_Node_Str"));
if (speedmeter != null) speedmeter.stop();
break;
}
}
}
);
}

Fixed version (ground truth):
public void controlEvent(final ControlEvent event){
  EventQueue.invokeLater(new Runnable(){
    public void run(){
switch (event.getID()) {
case ControlEvent.CONTROL_INIT_COMPLETE:
        logger.info("String_Node_Str");
      SimpleGUI.this.setWaiting(false);
    SimpleGUI.this.setEnabled(true);
  if (SimpleGuiConstants.GUI_CONFIG.getBooleanProperty(SimpleGuiConstants.PARAM_START_DOWNLOADS_AFTER_START,false)) {
    new Thread(){
      public void run(){
        this.setName("String_Node_Str");
        final ProgressController pc=new ProgressController(JDLocale.L("String_Node_Str","String_Node_Str"));
        pc.getBroadcaster().addListener(new ProgressControllerListener(){
          public void onProgressControllerEvent(          ProgressControllerEvent event){
            pc.setStatusText("String_Node_Str");
          }
        }
);
        pc.finalize(10 * 1000l);
        while (!pc.isFinished()) {
          try {
            Thread.sleep(1000);
          }
 catch (          InterruptedException e) {
            break;
          }
        }
        if (!pc.isAbort())         JDUtilities.getController().startDownloads();
      }
    }
.start();
  }
break;
case ControlEvent.CONTROL_PLUGIN_ACTIVE:
logger.info("String_Node_Str" + event.getSource());
setTitle(JDUtilities.getJDTitle());
break;
case ControlEvent.CONTROL_SYSTEM_EXIT:
SimpleGUI.this.setVisible(false);
SimpleGUI.this.dispose();
break;
case ControlEvent.CONTROL_PLUGIN_INACTIVE:
logger.info("String_Node_Str" + event.getSource());
setTitle(JDUtilities.getJDTitle());
break;
case ControlEvent.CONTROL_ALL_DOWNLOADS_FINISHED:
for (DownloadLink link : DownloadController.getInstance().getAllDownloadLinks()) {
if (link.getLinkStatus().hasStatus(LinkStatus.TODO)) {
logger.info("String_Node_Str");
return;
}
}
logger.info("String_Node_Str");
break;
case ControlEvent.CONTROL_DOWNLOAD_START:
Balloon.showIfHidden(JDLocale.L("String_Node_Str","String_Node_Str"),JDTheme.II("String_Node_Str",32,32),JDLocale.L("String_Node_Str","String_Node_Str"));
break;
case ControlEvent.CONTROL_DOWNLOAD_STOP:
Balloon.showIfHidden(JDLocale.L("String_Node_Str","String_Node_Str"),JDTheme.II("String_Node_Str",32,32),JDLocale.L("String_Node_Str","String_Node_Str"));
break;
}
}
}
);
}