Program: 52023
Project: 52023
Buggy source:
/** 
 * Add the basic navigational options: Search - advanced search browse - browse by Titles - browse by Authors - browse by Dates language FIXME: add languages context no context options are added. action no action options are added.
 */
public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {
  Context context=ContextUtil.obtainContext(objectModel);
  Request request=ObjectModelHelper.getRequest(objectModel);
  options.addList("String_Node_Str");
  options.addList("String_Node_Str");
  options.addList("String_Node_Str");
  options.addList("String_Node_Str");
  String uri=request.getSitemapURI();
  String search_export_config=ConfigurationManager.getProperty("String_Node_Str");
  String query=decodeFromURL(request.getParameter("String_Node_Str"));
  String scope=request.getParameter("String_Node_Str");
  String fqps="String_Node_Str";
  String[] fqs=DiscoveryUIUtils.getFilterQueries(ObjectModelHelper.getRequest(objectModel),context);
  if (fqs != null) {
    for (int i=0; i < fqs.length; i++) {
      if (i < fqs.length - 1)       fqps+=fqs[i] + "String_Node_Str";
 else       fqps+=fqs[i];
    }
  }
  if (uri.contains("String_Node_Str")) {
    if ("String_Node_Str".equals(query))     query="String_Node_Str";
    if (uri.contains("String_Node_Str")) {
      scope=uri.replace("String_Node_Str","String_Node_Str").replace("String_Node_Str","String_Node_Str");
    }
    try {
      scope=scope.replace("String_Node_Str","String_Node_Str");
    }
 catch (    NullPointerException e) {
    }
    if (search_export_config != null) {
      if (search_export_config.equals("String_Node_Str")) {
        if (AuthorizeManager.isAdmin(context)) {
          List results=options.addList("String_Node_Str");
          results.setHead(T_context_head);
          results.addItem().addXref(contextPath + "String_Node_Str" + query+ "String_Node_Str"+ scope+ "String_Node_Str"+ fqps,T_export_metadata);
        }
      }
 else       if (search_export_config.equals("String_Node_Str") || search_export_config.equals("String_Node_Str")) {
        List results=options.addList("String_Node_Str");
        results.setHead(T_context_head);
        results.addItem().addXref(contextPath + "String_Node_Str" + query+ "String_Node_Str"+ scope+ "String_Node_Str"+ fqps,T_export_metadata);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Add the basic navigational options: Search - advanced search browse - browse by Titles - browse by Authors - browse by Dates language FIXME: add languages context no context options are added. action no action options are added.
 */
public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {
  Context context=ContextUtil.obtainContext(objectModel);
  Request request=ObjectModelHelper.getRequest(objectModel);
  options.addList("String_Node_Str");
  options.addList("String_Node_Str");
  options.addList("String_Node_Str");
  options.addList("String_Node_Str");
  String uri=request.getSitemapURI();
  String search_export_config=ConfigurationManager.getProperty("String_Node_Str");
  String query=decodeFromURL(request.getParameter("String_Node_Str"));
  String scope=request.getParameter("String_Node_Str");
  String filters="String_Node_Str";
  String[] fqs=DiscoveryUIUtils.getFilterQueries(ObjectModelHelper.getRequest(objectModel),context);
  if (fqs != null) {
    for (int i=0; i < fqs.length; i++) {
      if (i < fqs.length - 1)       filters+=fqs[i] + "String_Node_Str";
 else       filters+=fqs[i];
    }
  }
  if (uri.contains("String_Node_Str")) {
    if (scope == null || "String_Node_Str".equals(scope))     scope="String_Node_Str";
    if (query == null || "String_Node_Str".equals(query))     query="String_Node_Str";
    if (uri.contains("String_Node_Str")) {
      scope=uri.replace("String_Node_Str","String_Node_Str").replace("String_Node_Str","String_Node_Str");
    }
    try {
      scope=scope.replace("String_Node_Str","String_Node_Str");
    }
 catch (    NullPointerException e) {
    }
    if (search_export_config != null) {
      if (false) {
        log.warn("String_Node_Str");
        log.warn("String_Node_Str" + uri);
        log.warn("String_Node_Str" + query);
        log.warn("String_Node_Str" + scope);
        log.warn("String_Node_Str" + filters);
        log.warn("String_Node_Str");
      }
      if (search_export_config.equals("String_Node_Str")) {
        if (AuthorizeManager.isAdmin(context)) {
          List results=options.addList("String_Node_Str");
          results.setHead(T_context_head);
          results.addItem().addXref(contextPath + "String_Node_Str" + query+ "String_Node_Str"+ scope+ "String_Node_Str"+ filters,T_export_metadata);
        }
      }
 else       if (search_export_config.equals("String_Node_Str") || search_export_config.equals("String_Node_Str")) {
        List results=options.addList("String_Node_Str");
        results.setHead(T_context_head);
        results.addItem().addXref(contextPath + "String_Node_Str" + query+ "String_Node_Str"+ scope+ "String_Node_Str"+ filters,T_export_metadata);
      }
    }
  }
}