Program: 53040
Project: 53040
Buggy source:
/** 
 * @return the map holding the available {@link NdkCxxPlatform}s.
 */
public static ImmutableMap<TargetCpuType,NdkCxxPlatform> getPlatforms(CxxBuckConfig config,Path ndkRoot,NdkCxxPlatformCompiler compiler,CxxRuntime cxxRuntime,String androidPlatform,Set<String> cpuAbis,Platform platform,ExecutableFinder executableFinder,boolean strictToolchainPaths){
  ImmutableMap.Builder<TargetCpuType,NdkCxxPlatform> ndkCxxPlatformBuilder=ImmutableMap.builder();
  if (cpuAbis.contains("String_Node_Str")) {
    NdkCxxPlatformTargetConfiguration targetConfiguration=getTargetConfiguration(TargetCpuType.ARM,compiler,androidPlatform);
    NdkCxxPlatform armeabi=build(config,ImmutableFlavor.of("String_Node_Str"),platform,ndkRoot,targetConfiguration,cxxRuntime,executableFinder,strictToolchainPaths);
    ndkCxxPlatformBuilder.put(TargetCpuType.ARM,armeabi);
  }
  if (cpuAbis.contains("String_Node_Str")) {
    NdkCxxPlatformTargetConfiguration targetConfiguration=getTargetConfiguration(TargetCpuType.ARMV7,compiler,androidPlatform);
    NdkCxxPlatform armeabiv7=build(config,ImmutableFlavor.of("String_Node_Str"),platform,ndkRoot,targetConfiguration,cxxRuntime,executableFinder,strictToolchainPaths);
    ndkCxxPlatformBuilder.put(TargetCpuType.ARMV7,armeabiv7);
  }
  if (cpuAbis.contains("String_Node_Str")) {
    NdkCxxPlatformTargetConfiguration targetConfiguration=getTargetConfiguration(TargetCpuType.X86,compiler,androidPlatform);
    NdkCxxPlatform x86=build(config,ImmutableFlavor.of("String_Node_Str"),platform,ndkRoot,targetConfiguration,cxxRuntime,executableFinder,strictToolchainPaths);
    ndkCxxPlatformBuilder.put(TargetCpuType.X86,x86);
  }
  if (cpuAbis.contains("String_Node_Str")) {
    NdkCxxPlatformTargetConfiguration targetConfiguration=getTargetConfiguration(TargetCpuType.X86_64,compiler,androidPlatform);
    NdkCxxPlatform x86_64=build(config,ImmutableFlavor.of("String_Node_Str"),platform,ndkRoot,targetConfiguration,cxxRuntime,executableFinder,strictToolchainPaths);
    ndkCxxPlatformBuilder.put(TargetCpuType.X86_64,x86_64);
  }
  return ndkCxxPlatformBuilder.build();
}

Fixed version (ground truth):
/** 
 * @return the map holding the available {@link NdkCxxPlatform}s.
 */
public static ImmutableMap<TargetCpuType,NdkCxxPlatform> getPlatforms(CxxBuckConfig config,ProjectFilesystem filesystem,Path ndkRoot,NdkCxxPlatformCompiler compiler,CxxRuntime cxxRuntime,String androidPlatform,Set<String> cpuAbis,Platform platform,ExecutableFinder executableFinder,boolean strictToolchainPaths){
  ImmutableMap.Builder<TargetCpuType,NdkCxxPlatform> ndkCxxPlatformBuilder=ImmutableMap.builder();
  if (cpuAbis.contains("String_Node_Str")) {
    NdkCxxPlatformTargetConfiguration targetConfiguration=getTargetConfiguration(TargetCpuType.ARM,compiler,androidPlatform);
    NdkCxxPlatform armeabi=build(config,filesystem,ImmutableFlavor.of("String_Node_Str"),platform,ndkRoot,targetConfiguration,cxxRuntime,executableFinder,strictToolchainPaths);
    ndkCxxPlatformBuilder.put(TargetCpuType.ARM,armeabi);
  }
  if (cpuAbis.contains("String_Node_Str")) {
    NdkCxxPlatformTargetConfiguration targetConfiguration=getTargetConfiguration(TargetCpuType.ARMV7,compiler,androidPlatform);
    NdkCxxPlatform armeabiv7=build(config,filesystem,ImmutableFlavor.of("String_Node_Str"),platform,ndkRoot,targetConfiguration,cxxRuntime,executableFinder,strictToolchainPaths);
    ndkCxxPlatformBuilder.put(TargetCpuType.ARMV7,armeabiv7);
  }
  if (cpuAbis.contains("String_Node_Str")) {
    NdkCxxPlatformTargetConfiguration targetConfiguration=getTargetConfiguration(TargetCpuType.X86,compiler,androidPlatform);
    NdkCxxPlatform x86=build(config,filesystem,ImmutableFlavor.of("String_Node_Str"),platform,ndkRoot,targetConfiguration,cxxRuntime,executableFinder,strictToolchainPaths);
    ndkCxxPlatformBuilder.put(TargetCpuType.X86,x86);
  }
  if (cpuAbis.contains("String_Node_Str")) {
    NdkCxxPlatformTargetConfiguration targetConfiguration=getTargetConfiguration(TargetCpuType.X86_64,compiler,androidPlatform);
    NdkCxxPlatform x86_64=build(config,filesystem,ImmutableFlavor.of("String_Node_Str"),platform,ndkRoot,targetConfiguration,cxxRuntime,executableFinder,strictToolchainPaths);
    ndkCxxPlatformBuilder.put(TargetCpuType.X86_64,x86_64);
  }
  return ndkCxxPlatformBuilder.build();
}