Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[FIXED JENKINS-22139] Don't expand empty path with workspace root.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Mar 12, 2014
1 parent 03d75c2 commit 3ddc1d7
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/main/java/hudson/plugins/analysis/core/ParserResult.java
Expand Up @@ -2,15 +2,7 @@

import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;

Expand All @@ -23,8 +15,8 @@
import com.google.common.collect.Multimap;

import edu.umd.cs.findbugs.annotations.SuppressWarnings;
import hudson.FilePath;

import hudson.FilePath;
import hudson.plugins.analysis.Messages;
import hudson.plugins.analysis.util.FileFinder;
import hudson.plugins.analysis.util.model.FileAnnotation;
Expand Down Expand Up @@ -256,7 +248,8 @@ private void populateFileNameCache() throws IOException, InterruptedException {
*/
private boolean hasRelativeFileName(final FileAnnotation annotation) {
String fileName = annotation.getFileName();
return !fileName.startsWith(SLASH) && !fileName.contains(":");

return StringUtils.isNotBlank(fileName) && !fileName.startsWith(SLASH) && !fileName.contains(":");
}

/**
Expand Down

0 comments on commit 3ddc1d7

Please sign in to comment.