Program: 91710
Project: 91710
Buggy source:
private List<MavenProblemInfo> toMavenProblemInfos(SourceLocation location,List<? extends Throwable> exceptions){
  List<MavenProblemInfo> result=new ArrayList<MavenProblemInfo>();
  if (exceptions == null) {
    return result;
  }
  for (  Throwable ex : exceptions) {
    if (ex instanceof org.sonatype.aether.transfer.ArtifactNotFoundException) {
      org.sonatype.aether.transfer.ArtifactNotFoundException artifactNotFoundException=(org.sonatype.aether.transfer.ArtifactNotFoundException)ex;
      ArtifactNotFoundProblemInfo problem=new ArtifactNotFoundProblemInfo(artifactNotFoundException.getArtifact(),mavenConfiguration.isOffline(),location);
      result.add(problem);
    }
 else     if (ex instanceof AbstractArtifactResolutionException) {
      AbstractArtifactResolutionException abstractArtifactResolutionException=(AbstractArtifactResolutionException)ex;
      String errorMessage=getArtifactId(abstractArtifactResolutionException) + "String_Node_Str" + getRootErrorMessage(ex);
      result.add(new MavenProblemInfo(errorMessage,location));
    }
 else     if (ex instanceof ProjectBuildingException) {
      Throwable cause=ex.getCause();
      if (cause instanceof ModelBuildingException) {
        ModelBuildingException mbe=(ModelBuildingException)cause;
        for (        ModelProblem problem : mbe.getProblems()) {
          String message=NLS.bind(Messages.pluginMarkerBuildError,problem.getMessage());
          int severity=(Severity.WARNING == problem.getSeverity()) ? IMarker.SEVERITY_WARNING : IMarker.SEVERITY_ERROR;
          SourceLocation problemLocation=new SourceLocation(problem.getLineNumber(),1,1);
          result.add(new MavenProblemInfo(message,severity,problemLocation));
        }
      }
 else {
        result.add(new MavenProblemInfo(getErrorMessage(ex),location));
      }
    }
 else {
      result.add(new MavenProblemInfo(getErrorMessage(ex),location));
    }
  }
  return result;
}

Fixed version (ground truth):
private List<MavenProblemInfo> toMavenProblemInfos(MavenProject mavenProject,SourceLocation location,List<? extends Throwable> exceptions){
  List<MavenProblemInfo> result=new ArrayList<MavenProblemInfo>();
  if (exceptions == null) {
    return result;
  }
  for (  Throwable ex : exceptions) {
    if (ex instanceof org.sonatype.aether.transfer.ArtifactNotFoundException) {
      org.sonatype.aether.transfer.ArtifactNotFoundException artifactNotFoundException=(org.sonatype.aether.transfer.ArtifactNotFoundException)ex;
      ArtifactNotFoundProblemInfo problem=new ArtifactNotFoundProblemInfo(artifactNotFoundException.getArtifact(),mavenConfiguration.isOffline(),location);
      result.add(problem);
    }
 else     if (ex instanceof AbstractArtifactResolutionException) {
      AbstractArtifactResolutionException abstractArtifactResolutionException=(AbstractArtifactResolutionException)ex;
      String errorMessage=getArtifactId(abstractArtifactResolutionException) + "String_Node_Str" + getRootErrorMessage(ex);
      result.add(new MavenProblemInfo(errorMessage,location));
    }
 else     if (ex instanceof ProjectBuildingException) {
      Throwable cause=ex.getCause();
      if (cause instanceof ModelBuildingException) {
        ModelBuildingException mbe=(ModelBuildingException)cause;
        for (        ModelProblem problem : mbe.getProblems()) {
          String message=NLS.bind(Messages.pluginMarkerBuildError,problem.getMessage());
          int severity=(Severity.WARNING == problem.getSeverity()) ? IMarker.SEVERITY_WARNING : IMarker.SEVERITY_ERROR;
          SourceLocation problemLocation=SourceLocationHelper.findLocation(mavenProject,problem);
          result.add(new MavenProblemInfo(message,severity,problemLocation));
        }
      }
 else {
        result.add(new MavenProblemInfo(getErrorMessage(ex),location));
      }
    }
 else {
      result.add(new MavenProblemInfo(getErrorMessage(ex),location));
    }
  }
  return result;
}