Program: 91669
Project: 91669
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;
  }
  ProblemSeverity notCoveredMojoExecutionSeverity=ProblemSeverity.get(MavenPlugin.getMavenConfiguration().getNotCoveredMojoExecutionSeverity());
  boolean reportNotCoveredMojoExecutionProblems=!ProblemSeverity.ignore.equals(notCoveredMojoExecutionSeverity);
  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 (reportNotCoveredMojoExecutionProblems && isInterestingPhase(executionKey.getLifecyclePhase())) {
        SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
        result.addProblem(new NotCoveredMojoExecution(executionKey,notCoveredMojoExecutionSeverity.getSeverity(),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));
  if (reportNotCoveredMojoExecutionProblems) {
    result.addProblem(new NotCoveredMojoExecution(executionKey,notCoveredMojoExecutionSeverity.getSeverity(),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);
}

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;
  }
  ProblemSeverity notCoveredMojoExecutionSeverity=ProblemSeverity.get(MavenPlugin.getMavenConfiguration().getNotCoveredMojoExecutionSeverity());
  boolean reportNotCoveredMojoExecutionProblems=!ProblemSeverity.ignore.equals(notCoveredMojoExecutionSeverity);
  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 (reportNotCoveredMojoExecutionProblems && isInterestingPhase(executionKey.getLifecyclePhase())) {
        SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
        result.addProblem(new NotCoveredMojoExecution(executionKey,notCoveredMojoExecutionSeverity.getSeverity(),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);
  if (reportNotCoveredMojoExecutionProblems) {
    SourceLocation markerLocation=SourceLocationHelper.findLocation(mavenProject,executionKey);
    result.addProblem(new MissingConfiguratorProblemInfo(configuratorId,executionKey,notCoveredMojoExecutionSeverity.getSeverity(),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);
}