Program: 142763
Project: 142763
Buggy source:
public void initArchitecture(){
  model=VizController.getInstance().getVizModel().getTextModel();
  vizConfig=VizController.getInstance().getVizConfig();
  drawable=VizController.getInstance().getDrawable();
  initRenderer();
  for (  SizeMode s : sizeModes) {
    s.init();
  }
  model.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      if (!nodeRenderer.getFont().equals(model.getNodeFont())) {
        nodeRenderer.setFont(model.getNodeFont());
      }
      if (!edgeRenderer.getFont().equals(model.getEdgeFont())) {
        edgeRenderer.setFont(model.getEdgeFont());
      }
      nodeRefresh=true;
      edgeRefresh=true;
    }
  }
);
  VizController.getInstance().getVizModel().addPropertyChangeListener(new PropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent evt){
      if (evt.getPropertyName().equals("String_Node_Str")) {
        TextManager.this.model=VizController.getInstance().getVizModel().getTextModel();
        if (model.getNodeTextColumns() == null || model.getNodeTextColumns().length == 0) {
          AttributeController attributeController=Lookup.getDefault().lookup(AttributeController.class);
          if (attributeController != null && attributeController.getModel() != null) {
            AttributeModel attributeModel=attributeController.getModel();
            AttributeColumn[] nodeCols=new AttributeColumn[]{attributeModel.getNodeTable().getColumn(PropertiesColumn.NODE_LABEL.getIndex())};
            AttributeColumn[] edgeCols=new AttributeColumn[]{attributeModel.getEdgeTable().getColumn(PropertiesColumn.EDGE_LABEL.getIndex())};
            model.setTextColumns(nodeCols,edgeCols);
          }
        }
        DynamicController dynamicController=Lookup.getDefault().lookup(DynamicController.class);
        currentTimeInterval=dynamicController.getModel().getVisibleInterval();
      }
    }
  }
);
  antialised=vizConfig.isLabelAntialiased();
  mipmap=vizConfig.isLabelMipMap();
  fractionalMetrics=vizConfig.isLabelFractionalMetrics();
  renderer3d=false;
  DynamicController dynamicController=Lookup.getDefault().lookup(DynamicController.class);
  dynamicController.addModelListener(new DynamicModelListener(){
    public void dynamicModelChanged(    DynamicModelEvent event){
      currentTimeInterval=(TimeInterval)event.getData();
    }
  }
);
}

Fixed version (ground truth):
public void initArchitecture(){
  model=VizController.getInstance().getVizModel().getTextModel();
  vizConfig=VizController.getInstance().getVizConfig();
  drawable=VizController.getInstance().getDrawable();
  initRenderer();
  for (  SizeMode s : sizeModes) {
    s.init();
  }
  model.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      if (!nodeRenderer.getFont().equals(model.getNodeFont())) {
        nodeRenderer.setFont(model.getNodeFont());
      }
      if (!edgeRenderer.getFont().equals(model.getEdgeFont())) {
        edgeRenderer.setFont(model.getEdgeFont());
      }
      nodeRefresh=true;
      edgeRefresh=true;
    }
  }
);
  VizController.getInstance().getVizModel().addPropertyChangeListener(new PropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent evt){
      if (evt.getPropertyName().equals("String_Node_Str")) {
        TextManager.this.model=VizController.getInstance().getVizModel().getTextModel();
        if (model.getNodeTextColumns() == null || model.getNodeTextColumns().length == 0) {
          AttributeController attributeController=Lookup.getDefault().lookup(AttributeController.class);
          if (attributeController != null && attributeController.getModel() != null) {
            AttributeModel attributeModel=attributeController.getModel();
            AttributeColumn[] nodeCols=new AttributeColumn[]{attributeModel.getNodeTable().getColumn(PropertiesColumn.NODE_LABEL.getIndex())};
            AttributeColumn[] edgeCols=new AttributeColumn[]{attributeModel.getEdgeTable().getColumn(PropertiesColumn.EDGE_LABEL.getIndex())};
            model.setTextColumns(nodeCols,edgeCols);
          }
        }
        DynamicModel dynamicModel=dynamicController.getModel();
        if (dynamicModel != null) {
          currentTimeInterval=dynamicModel.getVisibleInterval();
        }
 else {
          currentTimeInterval=null;
        }
      }
    }
  }
);
  antialised=vizConfig.isLabelAntialiased();
  mipmap=vizConfig.isLabelMipMap();
  fractionalMetrics=vizConfig.isLabelFractionalMetrics();
  renderer3d=false;
  dynamicController=Lookup.getDefault().lookup(DynamicController.class);
  dynamicController.addModelListener(new DynamicModelListener(){
    public void dynamicModelChanged(    DynamicModelEvent event){
      currentTimeInterval=(TimeInterval)event.getData();
    }
  }
);
}