From 137116eb124a9e271d56d19c48a7bd99d8413098 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 5 Feb 2014 10:58:00 +0100 Subject: [PATCH] SONAR-926 fix support of non-fs projects --- .../main/java/org/sonar/batch/scan/filesystem/FileIndex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java index 3ec7284ae18..07e0e8a82cd 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java +++ b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java @@ -113,7 +113,7 @@ public class FileIndex implements BatchComponent { // Index only provided files indexFiles(fileSystem, progress, fileSystem.sourceFiles(), InputFile.TYPE_MAIN); indexFiles(fileSystem, progress, fileSystem.testFiles(), InputFile.TYPE_TEST); - } else { + } else if (fileSystem.baseDir() != null) { // index from basedir indexDirectory(fileSystem, progress, fileSystem.baseDir(), InputFile.TYPE_MAIN); indexDirectory(fileSystem, progress, fileSystem.baseDir(), InputFile.TYPE_TEST); -- 2.39.5