diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 498a7b6..0de0d2a 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -396,13 +396,14 @@ public class TestingList extends Panel { sTestName = new java.io.File( "." ).getCanonicalPath()+ TESTS_TESTS_DEFAULT_DIR + prop.getProperty("tests"); //config of device was loaded. now load the config of each test belonging to the device testsFolder = new File(sTestName); - File[] listOfTests = testsFolder.listFiles(); - for (File listOfTest : listOfTests) { - if (listOfTest.isDirectory()) { - this.jTextField1.append("\nTest " + listOfTest.getName()); + if(testsFolder.exists() && testsFolder.isDirectory()){ + File[] listOfTests = testsFolder.listFiles(); + for (File listOfTest : listOfTests) { + if (listOfTest.isDirectory()) { + this.jTextField1.append("\nTest " + listOfTest.getName()); + } } - } - + } addToTable(prop.getProperty("name"), prop.getProperty("description"), prop.getProperty("tests")); this.jTextField1.append(prop.getProperty("name")); this.jTextField1.append(prop.getProperty("description"));