Fix NullPointerException when music folder is not present

This commit is contained in:
klaxnek
2021-02-16 11:33:44 +01:00
parent 54f1767d01
commit 31a73d0887

View File

@@ -28,6 +28,7 @@ public enum MusicPlaylist {
}
};
filenames = new File(ForgeConstants.MUSIC_DIR + subDir).list(filter);
if (filenames == null) filenames = new String[0];
}
catch (Exception e) {
e.printStackTrace();