Program: 108216
Project: 108216
Buggy source:
@Override protected void doUpdate(final AnalysisContextRisk context){
  if (!this.isEnabled()) {
    if (manager != null) {
      manager.stop();
    }
    this.setStatusEmpty();
    return;
  }
  Analysis analysis=new Analysis(){
    RiskEstimateBuilderInterruptible builder=getBuilder(context,context.context.getModel().getSelectedQuasiIdentifiers());
    private boolean stopped=false;
    private RiskModelAttributes risks;
    @Override public int getProgress(){
      return builder.getProgress();
    }
    @Override public void onError(){
      setStatusEmpty();
    }
    @Override public void onFinish(){
      if (stopped || !isEnabled()) {
        return;
      }
      for (      final TableItem i : items) {
        i.dispose();
      }
      items.clear();
      for (      QuasiIdentifierRisks item : risks.getAttributeRisks()) {
        createItem(item);
      }
      for (      final TableColumn col : columns) {
        col.pack();
      }
      if (risks.getAttributeRisks().length == 0) {
        setStatusEmpty();
      }
 else {
        setStatusDone();
      }
      table.layout();
      table.redraw();
    }
    @Override public void onInterrupt(){
      if (!isEnabled()) {
        setStatusEmpty();
      }
 else {
        setStatusWorking();
      }
    }
    @Override public void run() throws InterruptedException {
      long time=System.currentTimeMillis();
      risks=builder.getPopulationBasedAttributeRisks();
      while (System.currentTimeMillis() - time < MINIMAL_WORKING_TIME && !stopped) {
        Thread.sleep(10);
      }
    }
    @Override public void stop(){
      builder.interrupt();
      this.stopped=true;
    }
  }
;
  this.manager.start(analysis);
}

Fixed version (ground truth):
@Override protected void doUpdate(final AnalysisContextRisk context){
  if (!this.isEnabled()) {
    if (manager != null) {
      manager.stop();
    }
    this.setStatusEmpty();
    return;
  }
  Analysis analysis=new Analysis(){
    RiskEstimateBuilderInterruptible builder=getBuilder(context,context.context.getModel().getSelectedQuasiIdentifiers());
    private boolean stopped=false;
    private RiskModelAttributes risks;
    @Override public int getProgress(){
      return builder.getProgress();
    }
    @Override public void onError(){
      setStatusEmpty();
    }
    @Override public void onFinish(){
      if (stopped || !isEnabled()) {
        return;
      }
      for (      final TableItem i : items) {
        i.dispose();
      }
      items.clear();
      for (      QuasiIdentifierRisks item : risks.getAttributeRisks()) {
        createItem(item);
      }
      for (      final TableColumn col : columns) {
        col.pack();
      }
      if (risks.getAttributeRisks().length == 0) {
        setStatusEmpty();
      }
 else {
        setStatusDone();
      }
      table.layout();
      table.redraw();
    }
    @Override public void onInterrupt(){
      if (!isEnabled() || !isValid()) {
        setStatusEmpty();
      }
 else {
        setStatusWorking();
      }
    }
    @Override public void run() throws InterruptedException {
      long time=System.currentTimeMillis();
      risks=builder.getPopulationBasedAttributeRisks();
      while (System.currentTimeMillis() - time < MINIMAL_WORKING_TIME && !stopped) {
        Thread.sleep(10);
      }
    }
    @Override public void stop(){
      builder.interrupt();
      this.stopped=true;
    }
  }
;
  this.manager.start(analysis);
}