Program: 167528
Project: 167528
Buggy source:
public EditDbReaderPanel(ApplicationContext context,Component component){
  this.context=context;
  this.component=component;
  ButtonBar buttonBar=new ButtonBar();
  addComponent(buttonBar);
  executeSqlClickListener=new ExecuteSqlClickListener();
  executeButton=buttonBar.addButton("String_Node_Str",FontAwesome.PLAY,executeSqlClickListener);
  executeButton.setEnabled(false);
  Resource resource=component.getResource();
  if (resource != null) {
    resource.put(BasicDataSourcePropertyConstants.DB_POOL_INITIAL_SIZE,"String_Node_Str");
    resource.put(BasicDataSourcePropertyConstants.DB_POOL_MAX_ACTIVE,"String_Node_Str");
    resource.put(BasicDataSourcePropertyConstants.DB_POOL_MAX_IDLE,"String_Node_Str");
    resource.put(BasicDataSourcePropertyConstants.DB_POOL_MIN_IDLE,"String_Node_Str");
    DataSourceResource dataSourceResource=(DataSourceResource)context.getResourceFactory().create(resource);
    DataSource dataSource=dataSourceResource.reference();
    platform=JdbcDatabasePlatformFactory.createNewPlatformInstance(dataSource,new SqlTemplateSettings(),false);
    queryPanel=new QueryPanel(new IDb(){
      @Override public IDatabasePlatform getPlatform(){
        return platform;
      }
      @Override public String getName(){
        return "String_Node_Str";
      }
    }
,new ISettingsProvider(){
      Settings settings=new Settings();
      @Override public void save(      Settings settings){
      }
      @Override public Settings load(){
        return settings;
      }
      @Override public Settings get(){
        return settings;
      }
    }
,new IButtonBar(){
      @Override public void setRollbackButtonEnabled(      boolean enabled){
      }
      @Override public void setExecuteScriptButtonEnabled(      boolean enabled){
      }
      @Override public void setExecuteAtCursorButtonEnabled(      boolean enabled){
        executeButton.setEnabled(enabled);
      }
      @Override public void setCommitButtonEnabled(      boolean enabled){
      }
    }
,context.getUser().getUserId());
    queryPanel.appendSql(component.get(DbReader.SQL));
    queryPanel.addShortcutListener(new ShortcutListener("String_Node_Str",KeyCode.ENTER,new int[]{ModifierKey.CTRL}){
      @Override public void handleAction(      Object sender,      Object target){
        executeSqlClickListener.buttonClick(new ClickEvent(executeButton));
      }
    }
);
    addComponent(queryPanel);
    setExpandRatio(queryPanel,1);
  }
 else {
    Label label=new Label("String_Node_Str");
    addComponent(label);
    setExpandRatio(label,1);
  }
}

Fixed version (ground truth):
public EditDbReaderPanel(ApplicationContext context,Component component,PropertySheet propertySheet){
  this.context=context;
  this.component=component;
  this.propertySheet=propertySheet;
  ButtonBar buttonBar=new ButtonBar();
  addComponent(buttonBar);
  executeSqlClickListener=new ExecuteSqlClickListener();
  executeButton=buttonBar.addButton("String_Node_Str",FontAwesome.PLAY,executeSqlClickListener);
  executeButton.setEnabled(false);
  Resource resource=component.getResource();
  if (resource != null) {
    resource.put(BasicDataSourcePropertyConstants.DB_POOL_INITIAL_SIZE,"String_Node_Str");
    resource.put(BasicDataSourcePropertyConstants.DB_POOL_MAX_ACTIVE,"String_Node_Str");
    resource.put(BasicDataSourcePropertyConstants.DB_POOL_MAX_IDLE,"String_Node_Str");
    resource.put(BasicDataSourcePropertyConstants.DB_POOL_MIN_IDLE,"String_Node_Str");
    DataSourceResource dataSourceResource=(DataSourceResource)context.getResourceFactory().create(resource);
    DataSource dataSource=dataSourceResource.reference();
    platform=JdbcDatabasePlatformFactory.createNewPlatformInstance(dataSource,new SqlTemplateSettings(),false);
    queryPanel=new QueryPanel(new IDb(){
      @Override public IDatabasePlatform getPlatform(){
        return platform;
      }
      @Override public String getName(){
        return "String_Node_Str";
      }
    }
,new ISettingsProvider(){
      Settings settings=new Settings();
      @Override public void save(      Settings settings){
      }
      @Override public Settings load(){
        return settings;
      }
      @Override public Settings get(){
        return settings;
      }
    }
,new IButtonBar(){
      @Override public void setRollbackButtonEnabled(      boolean enabled){
      }
      @Override public void setExecuteScriptButtonEnabled(      boolean enabled){
      }
      @Override public void setExecuteAtCursorButtonEnabled(      boolean enabled){
        executeButton.setEnabled(enabled);
      }
      @Override public void setCommitButtonEnabled(      boolean enabled){
      }
    }
,context.getUser().getUserId());
    queryPanel.appendSql(component.get(DbReader.SQL));
    queryPanel.addShortcutListener(new ShortcutListener("String_Node_Str",KeyCode.ENTER,new int[]{ModifierKey.CTRL}){
      @Override public void handleAction(      Object sender,      Object target){
        executeSqlClickListener.buttonClick(new ClickEvent(executeButton));
      }
    }
);
    addComponent(queryPanel);
    setExpandRatio(queryPanel,1);
  }
 else {
    Label label=new Label("String_Node_Str");
    addComponent(label);
    setExpandRatio(label,1);
  }
}