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];