Program: 38780
Project: 38780
Buggy source:
/** 
 * Load the server extensions.
 */
public static ServerExtensionWrapper[] createServerExtensions(){
  if (Trace.ENABLED)   Trace.trace(Trace.EXTENSION_POINT,"String_Node_Str");
  IExtensionRegistry registry=Platform.getExtensionRegistry();
  IConfigurationElement[] cf=registry.getConfigurationElementsFor(Activator.PLUGIN_ID,EXTENSION_POINT);
  List<ServerExtensionWrapper> list=new ArrayList<ServerExtensionWrapper>(cf.length);
  List<String> appTypeList=new ArrayList<String>();
  List<String> genericTypeList=new ArrayList<String>();
  List<String> applicationElementList=new ArrayList<String>();
  applicationElementList.add("String_Node_Str");
  for (  IConfigurationElement ce : cf) {
    try {
      ServerExtensionWrapper sew=new ServerExtensionWrapper(ce);
      list.add(sew);
      for (      String s : sew.applicationTypes) {
        if (s != null)         appTypeList.add(s);
      }
      for (      String s : sew.applicationElements) {
        if (s != null)         applicationElementList.add(s);
      }
      for (      String s : sew.genericModuleTypes) {
        genericTypeList.add(s);
      }
      if (Trace.ENABLED)       Trace.trace(Trace.EXTENSION_POINT,"String_Node_Str" + ce.getAttribute("String_Node_Str"));
    }
 catch (    Throwable t) {
      Trace.logError("String_Node_Str" + ce.getAttribute("String_Node_Str"),t);
    }
  }
  if (allApplicationTypes == null)   allApplicationTypes=appTypeList.toArray(new String[appTypeList.size()]);
  if (allApplicationElements == null)   allApplicationElements=applicationElementList.toArray(new String[applicationElementList.size()]);
  if (allGenericModuleTypes == null)   allGenericModuleTypes=genericTypeList.toArray(new String[genericTypeList.size()]);
  if (Trace.ENABLED)   Trace.trace(Trace.EXTENSION_POINT,"String_Node_Str");
  return list.toArray(new ServerExtensionWrapper[list.size()]);
}

Fixed version (ground truth):
/** 
 * Load the server extensions.
 */
public static ServerExtensionWrapper[] createServerExtensions(){
  if (Trace.ENABLED)   Trace.trace(Trace.EXTENSION_POINT,"String_Node_Str");
  IExtensionRegistry registry=Platform.getExtensionRegistry();
  IConfigurationElement[] cf=registry.getConfigurationElementsFor(Activator.PLUGIN_ID,EXTENSION_POINT);
  List<ServerExtensionWrapper> list=new ArrayList<ServerExtensionWrapper>(cf.length);
  Set<String> appTypeList=new HashSet<String>();
  Set<String> genericTypeList=new HashSet<String>();
  Set<String> applicationElementList=new HashSet<String>();
  applicationElementList.add("String_Node_Str");
  for (  IConfigurationElement ce : cf) {
    try {
      ServerExtensionWrapper sew=new ServerExtensionWrapper(ce);
      list.add(sew);
      for (      String s : sew.applicationTypes) {
        if (s != null)         appTypeList.add(s);
      }
      for (      String s : sew.applicationElements) {
        if (s != null)         applicationElementList.add(s);
      }
      for (      String s : sew.genericModuleTypes) {
        genericTypeList.add(s);
      }
      if (Trace.ENABLED)       Trace.trace(Trace.EXTENSION_POINT,"String_Node_Str" + ce.getAttribute("String_Node_Str"));
    }
 catch (    Throwable t) {
      Trace.logError("String_Node_Str" + ce.getAttribute("String_Node_Str"),t);
    }
  }
  if (allApplicationTypes == null)   allApplicationTypes=appTypeList.toArray(new String[appTypeList.size()]);
  if (allApplicationElements == null)   allApplicationElements=applicationElementList.toArray(new String[applicationElementList.size()]);
  if (allGenericModuleTypes == null)   allGenericModuleTypes=genericTypeList.toArray(new String[genericTypeList.size()]);
  if (Trace.ENABLED)   Trace.trace(Trace.EXTENSION_POINT,"String_Node_Str");
  return list.toArray(new ServerExtensionWrapper[list.size()]);
}