From 55ba203123741aa3dfc568c3a2df6e11120a8d1c Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 8 Apr 2015 14:37:15 +0200 Subject: Fix NPE in CoveragePublisher for views --- sonar-batch/src/main/java/org/sonar/batch/index/BatchResource.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sonar-batch') 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) { -- cgit v1.2.3