Program: 139965
Project: 139965
Buggy source:
/** 
 * DOC qzhang Comment method "activeData".
 */
public void activeData(){
  if (SE_ID.equals(perspectiveId)) {
    IFolder folder=ResourcesPlugin.getWorkspace().getRoot().getProject(org.talend.dataquality.PluginConstant.getRootProjectName()).getFolder(DQStructureManager.getMetaData()).getFolder(DQStructureManager.DB_CONNECTIONS);
    List<TdDataProvider> listTdDataProviders=DqRepositoryViewService.listTdDataProviders(folder,true);
    SQLExplorerPlugin default1=SQLExplorerPlugin.getDefault();
    AliasManager aliasManager=default1.getAliasManager();
    aliasManager.getAliases().clear();
    Set<User> users=new HashSet<User>();
    try {
      aliasManager.closeAllConnections();
    }
 catch (    ExplorerException e1) {
      log.error(e1,e1);
    }
    for (    TdDataProvider tdDataProvider : listTdDataProviders) {
      try {
        TypedReturnCode<TdProviderConnection> tdPc=DataProviderHelper.getTdProviderConnection(tdDataProvider);
        TdProviderConnection providerConnection=tdPc.getObject();
        String url=providerConnection.getConnectionString();
        Alias alias=new Alias(tdDataProvider.getName());
        String user=TaggedValueHelper.getValue("String_Node_Str",providerConnection);
        String password=DataProviderHelper.getClearTextPassword(providerConnection);
        if ("String_Node_Str".equals(user)) {
          user="String_Node_Str";
        }
        User previousUser=new User(user,password);
        alias.setDefaultUser(previousUser);
        users.add(previousUser);
        alias.setAutoLogon(false);
        alias.setConnectAtStartup(true);
        alias.setUrl(url);
        ManagedDriver manDr=default1.getDriverModel().getDriver(EDriverName.getId(providerConnection.getDriverClassName()));
        alias.setDriver(manDr);
        aliasManager.addAlias(alias);
      }
 catch (      ExplorerException e) {
        log.error(e,e);
      }
    }
    aliasManager.modelChanged();
  }
}

Fixed version (ground truth):
/** 
 * DOC qzhang Comment method "activeData".
 */
public void activeData(){
  if (SE_ID.equals(perspectiveId)) {
    IFolder folder=ResourcesPlugin.getWorkspace().getRoot().getProject(org.talend.dataquality.PluginConstant.getRootProjectName()).getFolder(DQStructureManager.getMetaData()).getFolder(DQStructureManager.DB_CONNECTIONS);
    List<TdDataProvider> listTdDataProviders=DqRepositoryViewService.listTdDataProviders(folder,true);
    SQLExplorerPlugin default1=SQLExplorerPlugin.getDefault();
    AliasManager aliasManager=default1.getAliasManager();
    aliasManager.getAliases().clear();
    Set<User> users=new HashSet<User>();
    try {
      aliasManager.closeAllConnections();
    }
 catch (    ExplorerException e1) {
      log.error(e1,e1);
    }
    for (    TdDataProvider tdDataProvider : listTdDataProviders) {
      try {
        TypedReturnCode<TdProviderConnection> tdPc=DataProviderHelper.getTdProviderConnection(tdDataProvider);
        TdProviderConnection providerConnection=tdPc.getObject();
        String url=providerConnection.getConnectionString();
        Alias alias=new Alias(tdDataProvider.getName());
        String user=DataProviderHelper.getClearTextUser(providerConnection);
        String password=DataProviderHelper.getClearTextPassword(providerConnection);
        if ("String_Node_Str".equals(user)) {
          user="String_Node_Str";
        }
        User previousUser=new User(user,password);
        alias.setDefaultUser(previousUser);
        users.add(previousUser);
        alias.setAutoLogon(false);
        alias.setConnectAtStartup(true);
        alias.setUrl(url);
        ManagedDriver manDr=default1.getDriverModel().getDriver(EDriverName.getId(providerConnection.getDriverClassName()));
        alias.setDriver(manDr);
        aliasManager.addAlias(alias);
      }
 catch (      ExplorerException e) {
        log.error(e,e);
      }
    }
    aliasManager.modelChanged();
  }
}