Program: 19612
Project: 19612
Buggy source:
public static Policy createPolicyObject(TestDataReader reader,String policyId) throws Exception {
  PolicyServiceTestHelper helper=PolicyServiceTestHelper.getInstance(false);
  String type=reader.getEntryValue(policyId,"String_Node_Str").trim();
  String policyName=reader.getEntryValue(policyId,"String_Node_Str");
  String policyDesc=reader.getEntryValue(policyId,"String_Node_Str");
  if (type == null || policyName == null || policyDesc == null || type.equals("String_Node_Str") || policyName.equals("String_Node_Str") || policyDesc.equals("String_Node_Str"))   throw new Exception("String_Node_Str");
  List<String> resourceMap=new ArrayList<String>();
  String resourceList=reader.getEntryValue(policyId,"String_Node_Str");
  if (resourceList != null || !resourceList.equals("String_Node_Str")) {
    String[] resKeys=resourceList.trim().split("String_Node_Str");
    for (int i=0; i < resKeys.length; i++)     resourceMap.add(resKeys[i]);
  }
  List<String> globalSubjectDomainList=new ArrayList<String>();
  String globalSubjects=reader.getEntryValue(policyId,"String_Node_Str");
  if (globalSubjects != null && !globalSubjects.equals("String_Node_Str")) {
    String[] globalSubKeys=globalSubjects.trim().split("String_Node_Str");
    for (int i=0; i < globalSubKeys.length; i++)     globalSubjectDomainList.add(globalSubKeys[i]);
  }
  List<String> subjectInclusionList=new ArrayList<String>();
  String subInclusion=reader.getEntryValue(policyId,"String_Node_Str");
  if (subInclusion != null && !subInclusion.equals("String_Node_Str")) {
    String[] subInclusionKeys=subInclusion.trim().split("String_Node_Str");
    for (int i=0; i < subInclusionKeys.length; i++)     subjectInclusionList.add(subInclusionKeys[i]);
  }
  List<String> subjectExclusionList=new ArrayList<String>();
  String subExclusion=reader.getEntryValue(policyId,"String_Node_Str");
  if (subExclusion != null && !subExclusion.equals("String_Node_Str")) {
    String[] subExclusionKeys=subExclusion.trim().split("String_Node_Str");
    for (int i=0; i < subExclusionKeys.length; i++)     subjectExclusionList.add(subExclusionKeys[i]);
  }
  List<String> subjectGroupInclusion=new ArrayList<String>();
  String subGroupInclusion=reader.getEntryValue(policyId,"String_Node_Str");
  if (subGroupInclusion != null && !subGroupInclusion.equals("String_Node_Str")) {
    String[] subGroupInclusionKeys=subGroupInclusion.trim().split("String_Node_Str");
    for (int i=0; i < subGroupInclusionKeys.length; i++) {
      subjectGroupInclusion.add(subGroupInclusionKeys[i]);
    }
  }
  List<String> subjectGroupExclusion=new ArrayList<String>();
  String subGroupExclusion=reader.getEntryValue(policyId,"String_Node_Str");
  if (subGroupExclusion != null && !subGroupExclusion.equals("String_Node_Str")) {
    String[] subGroupExclusionKeys=subGroupExclusion.trim().split("String_Node_Str");
    for (int i=0; i < subGroupExclusionKeys.length; i++) {
      subjectGroupExclusion.add(subGroupExclusionKeys[i]);
    }
  }
  long duration=0L;
  if (reader.getEntryValue(policyId,"String_Node_Str") != null)   duration=Long.parseLong(reader.getEntryValue(policyId,"String_Node_Str").trim());
  long rolloverperiod=0L;
  if (reader.getEntryValue(policyId,"String_Node_Str") != null)   rolloverperiod=Long.parseLong(reader.getEntryValue(policyId,"String_Node_Str").trim());
  String condition=reader.getEntryValue(policyId,"String_Node_Str");
  EffectType effect=null;
  if (reader.getEntryValue(policyId,"String_Node_Str") != null)   effect=EffectType.valueOf(reader.getEntryValue(policyId,"String_Node_Str").trim());
  boolean isActive=true;
  if (reader.getEntryValue(policyId,"String_Node_Str") != null)   isActive=Boolean.parseBoolean(reader.getEntryValue(policyId,"String_Node_Str").trim());
  if (effect != null && effect.equals("String_Node_Str") && (condition == null && condition.equals("String_Node_Str")))   throw new Exception("String_Node_Str");
  Policy p=null;
  p=helper.constructPolicy(type,policyName,policyDesc,resourceMap,globalSubjectDomainList,subjectInclusionList,subjectGroupInclusion,subjectExclusionList,subjectGroupExclusion,duration,rolloverperiod,effect,condition,isActive);
  return p;
}

Fixed version (ground truth):
public static Policy createPolicyObject(TestDataReader reader,String policyId) throws Exception {
  PolicyServiceTestHelper helper=PolicyServiceTestHelper.getInstance(false);
  String type=reader.getEntryValue(policyId,"String_Node_Str").trim();
  String policyName=reader.getEntryValue(policyId,"String_Node_Str");
  String policyDesc=reader.getEntryValue(policyId,"String_Node_Str");
  if (type == null || policyName == null || policyDesc == null || type.equals("String_Node_Str") || policyName.equals("String_Node_Str") || policyDesc.equals("String_Node_Str"))   throw new Exception("String_Node_Str");
  List<String> resourceMap=new ArrayList<String>();
  String resourceList=reader.getEntryValue(policyId,"String_Node_Str");
  if (resourceList != null || !resourceList.equals("String_Node_Str")) {
    String[] resKeys=resourceList.trim().split("String_Node_Str");
    for (int i=0; i < resKeys.length; i++)     resourceMap.add(resKeys[i]);
  }
  List<String> globalSubjectDomainList=new ArrayList<String>();
  String globalSubjects=reader.getEntryValue(policyId,"String_Node_Str");
  if (globalSubjects != null && !globalSubjects.equals("String_Node_Str")) {
    String[] globalSubKeys=globalSubjects.trim().split("String_Node_Str");
    for (int i=0; i < globalSubKeys.length; i++)     globalSubjectDomainList.add(globalSubKeys[i]);
  }
  List<String> subjectInclusionList=new ArrayList<String>();
  String subInclusion=reader.getEntryValue(policyId,"String_Node_Str");
  if (subInclusion != null && !subInclusion.equals("String_Node_Str")) {
    String[] subInclusionKeys=subInclusion.trim().split("String_Node_Str");
    for (int i=0; i < subInclusionKeys.length; i++)     subjectInclusionList.add(subInclusionKeys[i]);
  }
  List<String> subjectExclusionList=new ArrayList<String>();
  String subExclusion=reader.getEntryValue(policyId,"String_Node_Str");
  if (subExclusion != null && !subExclusion.equals("String_Node_Str")) {
    String[] subExclusionKeys=subExclusion.trim().split("String_Node_Str");
    for (int i=0; i < subExclusionKeys.length; i++)     subjectExclusionList.add(subExclusionKeys[i]);
  }
  List<String> subjectGroupInclusion=new ArrayList<String>();
  String subGroupInclusion=reader.getEntryValue(policyId,"String_Node_Str");
  if (subGroupInclusion != null && !subGroupInclusion.equals("String_Node_Str")) {
    String[] subGroupInclusionKeys=subGroupInclusion.trim().split("String_Node_Str");
    for (int i=0; i < subGroupInclusionKeys.length; i++) {
      subjectGroupInclusion.add(subGroupInclusionKeys[i]);
    }
  }
  List<String> subjectGroupExclusion=new ArrayList<String>();
  String subGroupExclusion=reader.getEntryValue(policyId,"String_Node_Str");
  if (subGroupExclusion != null && !subGroupExclusion.equals("String_Node_Str")) {
    String[] subGroupExclusionKeys=subGroupExclusion.trim().split("String_Node_Str");
    for (int i=0; i < subGroupExclusionKeys.length; i++) {
      subjectGroupExclusion.add(subGroupExclusionKeys[i]);
    }
  }
  long duration=0L;
  if (reader.getEntryValue(policyId,"String_Node_Str") != null)   duration=Long.parseLong(reader.getEntryValue(policyId,"String_Node_Str").trim());
  long rolloverperiod=0L;
  if (reader.getEntryValue(policyId,"String_Node_Str") != null)   rolloverperiod=Long.parseLong(reader.getEntryValue(policyId,"String_Node_Str").trim());
  String condition=reader.getEntryValue(policyId,"String_Node_Str");
  EffectType effect=null;
  if (reader.getEntryValue(policyId,"String_Node_Str") != null)   effect=EffectType.valueOf(reader.getEntryValue(policyId,"String_Node_Str").trim());
  boolean isActive=true;
  if (reader.getEntryValue(policyId,"String_Node_Str") != null)   isActive=Boolean.parseBoolean(reader.getEntryValue(policyId,"String_Node_Str").trim());
  if (effect != null && effect.equals("String_Node_Str") && (condition == null && condition.equals("String_Node_Str")))   throw new Exception("String_Node_Str");
  Policy p=helper.constructPolicy(type,policyName,policyDesc,resourceMap,globalSubjectDomainList,subjectInclusionList,subjectGroupInclusion,subjectExclusionList,subjectGroupExclusion,duration,rolloverperiod,effect,condition,isActive);
  return p;
}