mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58: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);
|
filenames = new File(ForgeConstants.MUSIC_DIR + subDir).list(filter);
|
||||||
|
if (filenames == null) filenames = new String[0];
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user