Program: 189978
Project: 189978
Buggy source:
private DataTableTopComponent(){
  dynamicFiltering=NbPreferences.forModule(DataTableTopComponent.class).getBoolean(DATA_LABORATORY_DYNAMIC_FILTERING,true);
  visibleOnly=NbPreferences.forModule(DataTableTopComponent.class).getBoolean(DATA_LABORATORY_ONLY_VISIBLE,false);
  useSparklines=NbPreferences.forModule(DataTableTopComponent.class).getBoolean(DATA_LABORATORY_SPARKLINES,false);
  timeIntervalGraphics=NbPreferences.forModule(DataTableTopComponent.class).getBoolean(DATA_LABORATORY_TIME_INTERVAL_GRAPHICS,false);
  showEdgesNodesLabels=NbPreferences.forModule(DataTableTopComponent.class).getBoolean(DATA_LABORATORY_EDGES_NODES_LABELS,false);
  taskExecutor=new ThreadPoolExecutor(0,1,10L,TimeUnit.SECONDS,new LinkedBlockingDeque<Runnable>(20),new ThreadFactory(){
    public Thread newThread(    Runnable r){
      return new Thread(r,"String_Node_Str");
    }
  }
);
  initComponents();
  if (UIUtils.isAquaLookAndFeel()) {
    columnManipulatorsPanel.setBackground(UIManager.getColor("String_Node_Str"));
  }
  columnManipulatorsPanel.setLayout(new WrapLayout(WrapLayout.CENTER,25,20));
  setName(NbBundle.getMessage(DataTableTopComponent.class,"String_Node_Str"));
  setIcon(ImageUtilities.loadImage(ICON_PATH));
  Border b=(Border)UIManager.get("String_Node_Str");
  controlToolbar.setBorder(b);
  if (UIUtils.isAquaLookAndFeel()) {
    controlToolbar.setBackground(UIManager.getColor("String_Node_Str"));
  }
  initEvents();
  nodeTable=new NodeDataTable();
  edgeTable=new EdgeDataTable();
  nodeTable.setUseSparklines(useSparklines);
  nodeTable.setTimeIntervalGraphics(timeIntervalGraphics);
  edgeTable.setUseSparklines(useSparklines);
  edgeTable.setTimeIntervalGraphics(timeIntervalGraphics);
  edgeTable.setShowEdgesNodesLabels(showEdgesNodesLabels);
  ProjectController pc=Lookup.getDefault().lookup(ProjectController.class);
  Workspace workspace=pc.getCurrentWorkspace();
  if (workspace == null) {
    clearAll();
  }
 else {
    AttributeModel attributeModel=Lookup.getDefault().lookup(AttributeController.class).getModel();
    dataTablesModel=workspace.getLookup().lookup(DataTablesModel.class);
    if (dataTablesModel == null) {
      workspace.add(dataTablesModel=new DataTablesModel(attributeModel.getNodeTable(),attributeModel.getEdgeTable()));
    }
    nodeAvailableColumnsModel=dataTablesModel.getNodeAvailableColumnsModel();
    edgeAvailableColumnsModel=dataTablesModel.getEdgeAvailableColumnsModel();
    refreshAll();
  }
  bannerPanel.setVisible(false);
}

Fixed version (ground truth):
private DataTableTopComponent(){
  dynamicFiltering=NbPreferences.forModule(DataTableTopComponent.class).getBoolean(DATA_LABORATORY_DYNAMIC_FILTERING,true);
  visibleOnly=NbPreferences.forModule(DataTableTopComponent.class).getBoolean(DATA_LABORATORY_ONLY_VISIBLE,false);
  useSparklines=NbPreferences.forModule(DataTableTopComponent.class).getBoolean(DATA_LABORATORY_SPARKLINES,false);
  timeIntervalGraphics=NbPreferences.forModule(DataTableTopComponent.class).getBoolean(DATA_LABORATORY_TIME_INTERVAL_GRAPHICS,false);
  showEdgesNodesLabels=NbPreferences.forModule(DataTableTopComponent.class).getBoolean(DATA_LABORATORY_EDGES_NODES_LABELS,false);
  initComponents();
  if (UIUtils.isAquaLookAndFeel()) {
    columnManipulatorsPanel.setBackground(UIManager.getColor("String_Node_Str"));
  }
  columnManipulatorsPanel.setLayout(new WrapLayout(WrapLayout.CENTER,25,20));
  setName(NbBundle.getMessage(DataTableTopComponent.class,"String_Node_Str"));
  setIcon(ImageUtilities.loadImage(ICON_PATH));
  Border b=(Border)UIManager.get("String_Node_Str");
  controlToolbar.setBorder(b);
  if (UIUtils.isAquaLookAndFeel()) {
    controlToolbar.setBackground(UIManager.getColor("String_Node_Str"));
  }
  initEvents();
  nodeTable=new NodeDataTable();
  edgeTable=new EdgeDataTable();
  nodeTable.setUseSparklines(useSparklines);
  nodeTable.setTimeIntervalGraphics(timeIntervalGraphics);
  edgeTable.setUseSparklines(useSparklines);
  edgeTable.setTimeIntervalGraphics(timeIntervalGraphics);
  edgeTable.setShowEdgesNodesLabels(showEdgesNodesLabels);
  ProjectController pc=Lookup.getDefault().lookup(ProjectController.class);
  Workspace workspace=pc.getCurrentWorkspace();
  if (workspace == null) {
    clearAll();
  }
 else {
    AttributeModel attributeModel=Lookup.getDefault().lookup(AttributeController.class).getModel();
    dataTablesModel=workspace.getLookup().lookup(DataTablesModel.class);
    if (dataTablesModel == null) {
      workspace.add(dataTablesModel=new DataTablesModel(attributeModel.getNodeTable(),attributeModel.getEdgeTable()));
    }
    nodeAvailableColumnsModel=dataTablesModel.getNodeAvailableColumnsModel();
    edgeAvailableColumnsModel=dataTablesModel.getEdgeAvailableColumnsModel();
    refreshAllOnce();
  }
  bannerPanel.setVisible(false);
}