Program: 91684
Project: 91684
Buggy source:
public static void instantiateProjectConfigurators(MavenProject mavenProject,LifecycleMappingResult result,Map<MojoExecutionKey,List<IPluginExecutionMetadata>> map){
  if (map == null) {
    Map<String,AbstractProjectConfigurator> configurators=Collections.emptyMap();
    result.setProjectConfigurators(configurators);
    return;
  }
  Map<String,AbstractProjectConfigurator> configurators=new LinkedHashMap<String,AbstractProjectConfigurator>();
  for (  Map.Entry<MojoExecutionKey,List<IPluginExecutionMetadata>> entry : map.entrySet()) {
    MojoExecutionKey executionKey=entry.getKey();
    List<IPluginExecutionMetadata> executionMetadatas=entry.getValue();
    if (executionMetadatas == null || executionMetadatas.isEmpty()) {
      if (isInterestingPhase(executionKey.getLifecyclePhase())) {
        SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
        result.addProblem(new NotCoveredMojoExecution(executionKey,markerLocation));
      }
      continue;
    }
    for (    IPluginExecutionMetadata metadata : executionMetadatas) {
      String message=LifecycleMappingFactory.getActionMessage(metadata);
switch (metadata.getAction()) {
case error:
{
          if (message == null) {
            message=NLS.bind(Messages.LifecycleConfigurationPluginExecutionErrorMessage,executionKey.toString());
          }
          SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
          result.addProblem(new ActionMessageProblemInfo(message,IMarker.SEVERITY_ERROR,executionKey,markerLocation));
          break;
        }
case execute:
      if (message != null) {
        SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
        result.addProblem(new ActionMessageProblemInfo(message,IMarker.SEVERITY_WARNING,executionKey,markerLocation));
      }
    break;
case configurator:
  String configuratorId=LifecycleMappingFactory.getProjectConfiguratorId(metadata);
try {
  if (!configurators.containsKey(configuratorId)) {
    configurators.put(configuratorId,LifecycleMappingFactory.createProjectConfigurator(metadata));
  }
}
 catch (LifecycleMappingConfigurationException e) {
  log.debug("String_Node_Str",configuratorId,e);
  SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
  result.addProblem(new MissingConfiguratorProblemInfo(configuratorId,markerLocation));
  result.addProblem(new NotCoveredMojoExecution(executionKey,markerLocation));
}
break;
case ignore:
if (message != null) {
SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
result.addProblem(new ActionMessageProblemInfo(message,IMarker.SEVERITY_WARNING,executionKey,markerLocation));
}
break;
default :
}
}
}
result.setProjectConfigurators(configurators);
}

Fixed version (ground truth):
public static void instantiateProjectConfigurators(MavenProject mavenProject,LifecycleMappingResult result,Map<MojoExecutionKey,List<IPluginExecutionMetadata>> map){
  if (map == null) {
    Map<String,AbstractProjectConfigurator> configurators=Collections.emptyMap();
    result.setProjectConfigurators(configurators);
    return;
  }
  Map<String,AbstractProjectConfigurator> configurators=new LinkedHashMap<String,AbstractProjectConfigurator>();
  for (  Map.Entry<MojoExecutionKey,List<IPluginExecutionMetadata>> entry : map.entrySet()) {
    MojoExecutionKey executionKey=entry.getKey();
    List<IPluginExecutionMetadata> executionMetadatas=entry.getValue();
    if (executionMetadatas == null || executionMetadatas.isEmpty()) {
      if (isInterestingPhase(executionKey.getLifecyclePhase())) {
        SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
        result.addProblem(new NotCoveredMojoExecution(executionKey,markerLocation));
      }
      continue;
    }
    for (    IPluginExecutionMetadata metadata : executionMetadatas) {
      String message=LifecycleMappingFactory.getActionMessage(metadata);
switch (metadata.getAction()) {
case error:
{
          if (message == null) {
            message=NLS.bind(Messages.LifecycleConfigurationPluginExecutionErrorMessage,executionKey.toString());
          }
          SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
          result.addProblem(new ActionMessageProblemInfo(message,IMarker.SEVERITY_ERROR,executionKey,markerLocation,isPomMapping(metadata)));
          break;
        }
case execute:
      if (message != null) {
        SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
        result.addProblem(new ActionMessageProblemInfo(message,IMarker.SEVERITY_WARNING,executionKey,markerLocation,isPomMapping(metadata)));
      }
    break;
case configurator:
  String configuratorId=LifecycleMappingFactory.getProjectConfiguratorId(metadata);
try {
  if (!configurators.containsKey(configuratorId)) {
    configurators.put(configuratorId,LifecycleMappingFactory.createProjectConfigurator(metadata));
  }
}
 catch (LifecycleMappingConfigurationException e) {
  log.debug("String_Node_Str",configuratorId,e);
  SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
  result.addProblem(new MissingConfiguratorProblemInfo(configuratorId,markerLocation));
  result.addProblem(new NotCoveredMojoExecution(executionKey,markerLocation));
}
break;
case ignore:
if (message != null) {
SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
result.addProblem(new ActionMessageProblemInfo(message,IMarker.SEVERITY_WARNING,executionKey,markerLocation,isPomMapping(metadata)));
}
break;
default :
}
}
}
result.setProjectConfigurators(configurators);
}