Program: 2964
Project: 2964
Buggy source:
private void setUpStaticDependenciesWithinFindBugs(BugReporter bugReporter) throws CheckedAnalysisException, IOException, InterruptedException {
  bugReporter.setPriorityThreshold(Priorities.LOW_PRIORITY);
  ClassPathImpl classPath=new ClassPathImpl();
  IAnalysisCache analysisCache=ClassFactory.instance().createAnalysisCache(classPath,bugReporter);
  new ClassContextClassAnalysisEngine().registerWith(analysisCache);
  new edu.umd.cs.findbugs.classfile.engine.asm.EngineRegistrar().registerAnalysisEngines(analysisCache);
  new edu.umd.cs.findbugs.classfile.engine.bcel.EngineRegistrar().registerAnalysisEngines(analysisCache);
  new edu.umd.cs.findbugs.classfile.engine.EngineRegistrar().registerAnalysisEngines(analysisCache);
  registerUserDefined(analysisCache);
  Global.setAnalysisCacheForCurrentThread(analysisCache);
  ICodeBaseLocator codeBaseLocator=new FilesystemCodeBaseLocator("String_Node_Str");
  ICodeBase codeBase=new DirectoryCodeBase(codeBaseLocator,new File(CODEBASE_DIRECTORY));
  codeBase.setApplicationCodeBase(true);
  classPath.addCodeBase(codeBase);
  addAuxCodeBasesFromClassPath(classPath);
  IClassFactory classFactory=ClassFactory.instance();
  IClassPathBuilder builder=classFactory.createClassPathBuilder(bugReporter);
  builder.addCodeBase(codeBaseLocator,true);
  builder.scanNestedArchives(true);
  IClassPathBuilderProgress progress=new NoOpFindBugsProgress();
  builder.build(classPath,progress);
  List<ClassDescriptor> appClassList=builder.getAppClassList();
  AnalysisCacheToAnalysisContextAdapter analysisContext=new AnalysisCacheToAnalysisContextAdapter();
  AnalysisContext.setCurrentAnalysisContext(analysisContext);
  analysisContext.setAppClassList(appClassList);
  analysisContext.setFieldSummary(new FieldSummary());
}

Fixed version (ground truth):
private static void setUpStaticDependenciesWithinFindBugs(BugReporter bugReporter) throws Exception {
  bugReporter.setPriorityThreshold(Priorities.LOW_PRIORITY);
  ClassPathImpl classPath=new ClassPathImpl();
  IAnalysisCache analysisCache=ClassFactory.instance().createAnalysisCache(classPath,bugReporter);
  new ClassContextClassAnalysisEngine().registerWith(analysisCache);
  new edu.umd.cs.findbugs.classfile.engine.asm.EngineRegistrar().registerAnalysisEngines(analysisCache);
  new edu.umd.cs.findbugs.classfile.engine.bcel.EngineRegistrar().registerAnalysisEngines(analysisCache);
  new edu.umd.cs.findbugs.classfile.engine.EngineRegistrar().registerAnalysisEngines(analysisCache);
  registerUserDefined(analysisCache);
  Global.setAnalysisCacheForCurrentThread(analysisCache);
  ICodeBaseLocator codeBaseLocator=new FilesystemCodeBaseLocator("String_Node_Str");
  ICodeBase codeBase=new DirectoryCodeBase(codeBaseLocator,new File(CODEBASE_DIRECTORY));
  codeBase.setApplicationCodeBase(true);
  classPath.addCodeBase(codeBase);
  addAuxCodeBasesFromClassPath(classPath);
  IClassFactory classFactory=ClassFactory.instance();
  IClassPathBuilder builder=classFactory.createClassPathBuilder(bugReporter);
  builder.addCodeBase(codeBaseLocator,true);
  builder.scanNestedArchives(true);
  IClassPathBuilderProgress progress=new NoOpFindBugsProgress();
  builder.build(classPath,progress);
  List<ClassDescriptor> appClassList=builder.getAppClassList();
  AnalysisCacheToAnalysisContextAdapter analysisContext=new AnalysisCacheToAnalysisContextAdapter();
  AnalysisContext.setCurrentAnalysisContext(analysisContext);
  analysisContext.setAppClassList(appClassList);
  analysisContext.setFieldSummary(new FieldSummary());
}