From 8ba33f104e245f903831fd2734efc90b95c638b9 Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 13 Oct 2008 21:59:53 +0000 Subject: [PATCH] fix for npe git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5269 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/tools/diskUsage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/de/anomic/tools/diskUsage.java b/source/de/anomic/tools/diskUsage.java index ca3403bff..646cf7a3a 100644 --- a/source/de/anomic/tools/diskUsage.java +++ b/source/de/anomic/tools/diskUsage.java @@ -235,6 +235,10 @@ public class diskUsage { private static void checkVolumesInUseUnix (final String path) { final File file = new File(path); final File[] fileList = file.listFiles(); + if (fileList == null) { + // the file is not a directory + return; + } String base; String dir;