From 254a6ddc462d7271d7086b38f6e85da0c280ef8e Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Fri, 20 Oct 2017 16:09:04 +0200 Subject: [PATCH] Startup --- plugins/TestingList.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/TestingList.java b/plugins/TestingList.java index dd50429..beaa13a 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -2416,9 +2416,13 @@ public class TestingList extends Panel { } } } else { // if nothing found in this directory, see if there is a subdireactory - System.out.println("see subdirs of deviceInList:" + deviceInList.getPath().toString()); - System.out.println("see subdirs of deviceInList:" + deviceInList.listFiles().toString()); - Collections.addAll(listOfDevices, deviceInList.listFiles()); + try { + System.out.println("see subdirs of deviceInList:" + deviceInList.getPath().toString()); + System.out.println("see subdirs of deviceInList:" + deviceInList.listFiles().toString()); + Collections.addAll(listOfDevices, deviceInList.listFiles()); + } catch (Exception ex) { + Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex); + } } } }