Program: 140442
Project: 140442
Buggy source:
/** 
 * Open all connections that have the 'open on startup property'. This method should be called from within the UI thread!
 */
public void startDefaultConnections(ConnectionsView connectionsView){
  this.connectionsView=connectionsView;
  if (_defaultConnectionsStarted)   return;
  String fontDesc=getPluginPreferences().getString(IConstants.FONT);
  FontData fontData=null;
  try {
    try {
      fontData=new FontData(fontDesc);
    }
 catch (    IllegalArgumentException e) {
      fontData=new FontData("String_Node_Str");
    }
    PreferenceConverter.setValue(getPreferenceStore(),IConstants.FONT,fontData);
  }
 catch (  IllegalArgumentException e) {
    error("String_Node_Str",e);
  }
  boolean openEditor=SQLExplorerPlugin.getDefault().getPluginPreferences().getBoolean(IConstants.AUTO_OPEN_EDITOR);
  DatabaseStructureView dbView=null;
  IWorkbenchSite site=connectionsView.getSite();
  if (site.getPage() != null)   dbView=(DatabaseStructureView)site.getPage().findView(DatabaseStructureView.class.getName());
  for (  Alias alias : aliasManager.getAliases()) {
    if (alias.isConnectAtStartup() && alias.isAutoLogon() && alias.getDefaultUser() != null) {
      if (dbView != null)       try {
        dbView.addUser(alias.getDefaultUser());
      }
 catch (      SQLCannotConnectException e) {
      }
      if (openEditor) {
        SQLEditorInput input=new SQLEditorInput("String_Node_Str" + SQLExplorerPlugin.getDefault().getEditorSerialNo() + "String_Node_Str");
        input.setUser(alias.getDefaultUser());
        try {
          site.getPage().openEditor(input,SQLEditor.class.getName());
        }
 catch (        PartInitException e) {
          SQLExplorerPlugin.error("String_Node_Str",e);
        }
      }
    }
  }
  _defaultConnectionsStarted=true;
}

Fixed version (ground truth):
/** 
 * Open all connections that have the 'open on startup property'. This method should be called from within the UI thread!
 */
public void startDefaultConnections(ConnectionsView connectionsView){
  this.connectionsView=connectionsView;
  if (_defaultConnectionsStarted)   return;
  String fontDesc=getPluginPreferences().getString(IConstants.FONT);
  FontData fontData=null;
  try {
    try {
      fontData=new FontData(fontDesc);
    }
 catch (    IllegalArgumentException e) {
      fontData=new FontData("String_Node_Str");
    }
    PreferenceConverter.setValue(getPreferenceStore(),IConstants.FONT,fontData);
  }
 catch (  IllegalArgumentException e) {
    error("String_Node_Str",e);
  }
  boolean openEditor=SQLExplorerPlugin.getDefault().getPluginPreferences().getBoolean(IConstants.AUTO_OPEN_EDITOR);
  DatabaseStructureView dbView=null;
  IWorkbenchSite site=connectionsView.getSite();
  if (site.getPage() != null)   dbView=(DatabaseStructureView)site.getPage().findView(DatabaseStructureView.class.getName());
  for (  Alias alias : aliasManager.getAliases()) {
    if (alias.isConnectAtStartup() && alias.isAutoLogon() && alias.getDefaultUser() != null) {
      if (dbView != null)       try {
        dbView.addUser(alias.getDefaultUser());
      }
 catch (      SQLCannotConnectException e) {
      }
      if (openEditor) {
        SQLEditorInput input=new SQLEditorInput(SQL_EDITOR + SQLExplorerPlugin.getDefault().getEditorSerialNo() + SQL);
        input.setUser(alias.getDefaultUser());
        try {
          site.getPage().openEditor(input,SQLEditor.class.getName());
        }
 catch (        PartInitException e) {
          SQLExplorerPlugin.error("String_Node_Str",e);
        }
      }
    }
  }
  _defaultConnectionsStarted=true;
}