mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Fix NullPointerException when music folder is not present
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user