From bebd4767df2dd419a2d04eaa4253592d13336e8c Mon Sep 17 00:00:00 2001 From: ulrich Date: Tue, 06 Apr 2021 22:01:26 +0000 Subject: [PATCH] Gestaltungen angepasst --- src/de/uhilger/mediaz/store/FileStorage.java | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/de/uhilger/mediaz/store/FileStorage.java b/src/de/uhilger/mediaz/store/FileStorage.java index bf06140..524e4d2 100644 --- a/src/de/uhilger/mediaz/store/FileStorage.java +++ b/src/de/uhilger/mediaz/store/FileStorage.java @@ -148,12 +148,14 @@ public List<String> list(String typ) { File base = new File(fileBase); File dir = new File(base, typ); - File[] files = dir.listFiles(); List<String> list = new ArrayList(); - for(File file : files) { - //NamedItem n = new NamedItem(); - //n.setLabel(file.getName()); - list.add(file.getName()); + File[] files = dir.listFiles(); + if(files != null) { + for(File file : files) { + //NamedItem n = new NamedItem(); + //n.setLabel(file.getName()); + list.add(file.getName()); + } } return list; } -- Gitblit v1.9.3