summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/server-side/com/vaadin/tests/server/SourceFileChecker.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/server-side/com/vaadin/tests/server/SourceFileChecker.java b/tests/server-side/com/vaadin/tests/server/SourceFileChecker.java
index 4fa4523927..3115ce49c8 100644
--- a/tests/server-side/com/vaadin/tests/server/SourceFileChecker.java
+++ b/tests/server-side/com/vaadin/tests/server/SourceFileChecker.java
@@ -103,7 +103,12 @@ public class SourceFileChecker extends TestCase {
Assert.assertTrue("Directory " + directory + " does not exist",
directory.exists());
- for (File f : directory.listFiles()) {
+ File[] files = directory.listFiles();
+ if (files == null) {
+ throw new RuntimeException("Listing of directory "
+ + directory.getPath() + " failed");
+ }
+ for (File f : files) {
boolean ignoreThis = false;
for (String ignore : ignores) {
if (new File(baseDirectory, ignore).equals(f)) {