allowed classloader-sharing between ports
[org.ibex.jinetd.git] / src / org / ibex / jinetd / Loader.java
index 96093bd..8f9fef8 100644 (file)
@@ -59,7 +59,7 @@ public class Loader extends Watcher {
     public String getClassPath() {
         String classpath = System.getProperty("java.class.path");
         String [] l = new File(Root.root + "/LIB/").list();
-        for(int i=0; i<l.length; i++) {
+        for(int i=0; l != null && i<l.length; i++) {
             if (!l[i].endsWith(".jar")) continue;
             classpath += File.pathSeparatorChar;
             classpath += Root.root + "/LIB/" + l[i];