diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-04-08 14:37:15 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-04-08 14:38:37 +0200 |
commit | 55ba203123741aa3dfc568c3a2df6e11120a8d1c (patch) | |
tree | 9d2d11474dbb5aa5691780bc2f0d9a24796fb7ae /sonar-batch | |
parent | a40a8fc476cd6af4ea8b00793059110edc7dc977 (diff) | |
download | sonarqube-55ba203123741aa3dfc568c3a2df6e11120a8d1c.tar.gz sonarqube-55ba203123741aa3dfc568c3a2df6e11120a8d1c.zip |
Fix NPE in CoveragePublisher for views
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/index/BatchResource.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/BatchResource.java b/sonar-batch/src/main/java/org/sonar/batch/index/BatchResource.java index ff8af997c2f..9abeedcab43 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/BatchResource.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/BatchResource.java @@ -21,8 +21,8 @@ package org.sonar.batch.index; import org.sonar.api.batch.fs.InputPath; import org.sonar.api.database.model.Snapshot; +import org.sonar.api.resources.Qualifiers; import org.sonar.api.resources.Resource; -import org.sonar.api.resources.ResourceUtils; import javax.annotation.CheckForNull; import javax.annotation.Nullable; @@ -87,11 +87,11 @@ public class BatchResource { } public boolean isFile() { - return ResourceUtils.isFile(r); + return Qualifiers.isFile(r); } public boolean isDir() { - return ResourceUtils.isDirectory(r); + return Qualifiers.isDirectory(r); } public BatchResource setInputPath(InputPath inputPath) { |