Program: 110702
Project: 110702
Buggy source:
static Runtime.NoneType callExportsFiles(Object srcs,Object visibilityO,Object licensesO,FuncallExpression ast,Environment env) throws EvalException, ConversionException {
  Package.Builder pkgBuilder=getContext(env,ast).pkgBuilder;
  List<String> files=Type.STRING_LIST.convert(srcs,"String_Node_Str");
  RuleVisibility visibility;
  try {
    visibility=EvalUtils.isNullOrNone(visibilityO) ? ConstantRuleVisibility.PUBLIC : getVisibility(pkgBuilder.getBuildFileLabel(),BuildType.LABEL_LIST.convert(visibilityO,"String_Node_Str",pkgBuilder.getBuildFileLabel()));
  }
 catch (  EvalException e) {
    throw new EvalException(ast.getLocation(),e.getMessage());
  }
  License license=BuildType.LICENSE.convertOptional(licensesO,"String_Node_Str");
  for (  String file : files) {
    String errorMessage=LabelValidator.validateTargetName(file);
    if (errorMessage != null) {
      throw new EvalException(ast.getLocation(),errorMessage);
    }
    try {
      InputFile inputFile=pkgBuilder.createInputFile(file,ast.getLocation());
      if (inputFile.isVisibilitySpecified() && inputFile.getVisibility() != visibility) {
        throw new EvalException(ast.getLocation(),String.format("String_Node_Str",inputFile.getName()));
      }
      if (license != null && inputFile.isLicenseSpecified()) {
        throw new EvalException(ast.getLocation(),String.format("String_Node_Str",inputFile.getName()));
      }
      if (license == null && pkgBuilder.getDefaultLicense() == License.NO_LICENSE && RuleClass.isThirdPartyPackage(pkgBuilder.getPackageIdentifier())) {
        throw new EvalException(ast.getLocation(),"String_Node_Str" + inputFile.getName() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
      }
      pkgBuilder.setVisibilityAndLicense(inputFile,visibility,license);
    }
 catch (    Package.Builder.GeneratedLabelConflict e) {
      throw new EvalException(ast.getLocation(),e.getMessage());
    }
  }
  return Runtime.NONE;
}

Fixed version (ground truth):
static Runtime.NoneType callExportsFiles(Object srcs,Object visibilityO,Object licensesO,FuncallExpression ast,Environment env) throws EvalException, ConversionException {
  Package.Builder pkgBuilder=getContext(env,ast).pkgBuilder;
  List<String> files=Type.STRING_LIST.convert(srcs,"String_Node_Str");
  RuleVisibility visibility;
  try {
    visibility=EvalUtils.isNullOrNone(visibilityO) ? ConstantRuleVisibility.PUBLIC : getVisibility(pkgBuilder.getBuildFileLabel(),BuildType.LABEL_LIST.convert(visibilityO,"String_Node_Str",pkgBuilder.getBuildFileLabel()));
  }
 catch (  EvalException e) {
    throw new EvalException(ast.getLocation(),e.getMessage());
  }
  License license=BuildType.LICENSE.convertOptional(licensesO,"String_Node_Str");
  for (  String file : files) {
    String errorMessage=LabelValidator.validateTargetName(file);
    if (errorMessage != null) {
      throw new EvalException(ast.getLocation(),errorMessage);
    }
    try {
      InputFile inputFile=pkgBuilder.createInputFile(file,ast.getLocation());
      if (inputFile.isVisibilitySpecified() && inputFile.getVisibility() != visibility) {
        throw new EvalException(ast.getLocation(),String.format("String_Node_Str",inputFile.getName()));
      }
      if (license != null && inputFile.isLicenseSpecified()) {
        throw new EvalException(ast.getLocation(),String.format("String_Node_Str",inputFile.getName()));
      }
      if (license == null && !pkgBuilder.getDefaultLicense().isSpecified() && RuleClass.isThirdPartyPackage(pkgBuilder.getPackageIdentifier())) {
        throw new EvalException(ast.getLocation(),"String_Node_Str" + inputFile.getName() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
      }
      pkgBuilder.setVisibilityAndLicense(inputFile,visibility,license);
    }
 catch (    Package.Builder.GeneratedLabelConflict e) {
      throw new EvalException(ast.getLocation(),e.getMessage());
    }
  }
  return Runtime.NONE;
}