cope with File.list() returning null
authoradam <adam@megacz.com>
Thu, 8 Jul 2004 09:11:49 +0000 (09:11 +0000)
committeradam <adam@megacz.com>
Thu, 8 Jul 2004 09:11:49 +0000 (09:11 +0000)
darcs-hash:20040708091149-5007d-0117e951e1f6f27b850b6828bb336f2674b58a8c.gz

src/org/ibex/jinetd/Watched.java

index ce3267b..5d280c6 100644 (file)
@@ -26,6 +26,7 @@ public class Watched extends File {
         }
         for(int i=0; i<removals.size(); i++) cache.remove(removals.elementAt(i));
         String[] kids = list();        
+        if (kids == null) return;
         for(int i=0; i<kids.length; i++) {
             if (cache.get(kids[i]) != null) continue;
             Watched kid = slash(kids[i]);