Fix program crashing if unable to connect to BeatmapDB. (fixes #111)
In this case, load all beatmaps from disk instead of trying to read from the cache. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
6e7de654b0
commit
5f5c0cdbc4
|
@ -134,7 +134,7 @@ public class BeatmapParser {
|
||||||
|
|
||||||
// check if beatmap is cached
|
// check if beatmap is cached
|
||||||
String path = String.format("%s/%s", dir.getName(), file.getName());
|
String path = String.format("%s/%s", dir.getName(), file.getName());
|
||||||
if (map.containsKey(path)) {
|
if (map != null && map.containsKey(path)) {
|
||||||
// check last modified times
|
// check last modified times
|
||||||
long lastModified = map.get(path);
|
long lastModified = map.get(path);
|
||||||
if (lastModified == file.lastModified()) {
|
if (lastModified == file.lastModified()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user