Program: 9822
Project: 9822
Buggy source:
private void saveResults(){
  OutputStream fos=null;
  File old=new File(ontologyURI);
  int index=old.getName().lastIndexOf('.');
  String fileName="String_Node_Str";
  if (index > 0 && index <= old.getName().length() - 2) {
    fileName=old.getName().substring(0,index) + "String_Node_Str";
  }
  File file=new File(fileName);
  try {
    fos=new FileOutputStream(file);
    ObjectOutputStream o=new ObjectOutputStream(fos);
    o.writeObject(owlEquivalenceStandardMap);
    o.writeObject(owlEquivalenceFMeasureMap);
    o.writeObject(owlEquivalencePredaccMap);
    o.writeObject(owlEquivalenceJaccardMap);
    o.writeObject(owlEquivalenceGenFMeasureMap);
    o.writeObject(owlSuperStandardMap);
    o.writeObject(owlSuperFMeasureMap);
    o.writeObject(owlSuperPredaccMap);
    o.writeObject(owlSuperJaccardMap);
    o.writeObject(owlSuperGenFMeasureMap);
    o.writeObject(fastEquivalenceStandardMap);
    o.writeObject(fastEquivalenceFMeasureMap);
    o.writeObject(fastEquivalencePredaccMap);
    o.writeObject(fastEquivalenceJaccardMap);
    o.writeObject(fastEquivalenceGenFMeasureMap);
    o.writeObject(fastSuperStandardMap);
    o.writeObject(fastSuperFMeasureMap);
    o.writeObject(fastSuperPredaccMap);
    o.writeObject(fastSuperJaccardMap);
    o.writeObject(fastSuperGenFMeasureMap);
    o.writeObject(defaultEquivalenceMap);
    o.writeObject(defaultSuperMap);
    o.writeObject(baseURI);
    o.writeObject(prefixes);
    o.writeObject(assertedEquivalentClasses);
    o.writeObject(assertedSuperClasses);
    o.flush();
  }
 catch (  IOException e) {
    System.err.println(e);
  }
 finally {
    try {
      fos.close();
    }
 catch (    Exception e) {
    }
  }
}

Fixed version (ground truth):
private void saveResults(){
  OutputStream fos=null;
  File old=new File(ontologyURI);
  int index=old.toURI().toString().lastIndexOf('.');
  String fileName="String_Node_Str";
  if (index > 0) {
    fileName=old.toURI().toString().substring(0,index) + "String_Node_Str";
  }
  File file=new File(fileName);
  try {
    fos=new FileOutputStream(file);
    ObjectOutputStream o=new ObjectOutputStream(fos);
    o.writeObject(owlEquivalenceStandardMap);
    o.writeObject(owlEquivalenceFMeasureMap);
    o.writeObject(owlEquivalencePredaccMap);
    o.writeObject(owlEquivalenceJaccardMap);
    o.writeObject(owlEquivalenceGenFMeasureMap);
    o.writeObject(owlSuperStandardMap);
    o.writeObject(owlSuperFMeasureMap);
    o.writeObject(owlSuperPredaccMap);
    o.writeObject(owlSuperJaccardMap);
    o.writeObject(owlSuperGenFMeasureMap);
    o.writeObject(fastEquivalenceStandardMap);
    o.writeObject(fastEquivalenceFMeasureMap);
    o.writeObject(fastEquivalencePredaccMap);
    o.writeObject(fastEquivalenceJaccardMap);
    o.writeObject(fastEquivalenceGenFMeasureMap);
    o.writeObject(fastSuperStandardMap);
    o.writeObject(fastSuperFMeasureMap);
    o.writeObject(fastSuperPredaccMap);
    o.writeObject(fastSuperJaccardMap);
    o.writeObject(fastSuperGenFMeasureMap);
    o.writeObject(defaultEquivalenceMap);
    o.writeObject(defaultSuperMap);
    o.writeObject(baseURI);
    o.writeObject(prefixes);
    o.writeObject(assertedEquivalentClasses);
    o.writeObject(assertedSuperClasses);
    o.flush();
  }
 catch (  IOException e) {
    System.err.println(e);
  }
 finally {
    try {
      fos.close();
    }
 catch (    Exception e) {
    }
  }
}