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:
Jeffrey Han 2015-08-20 18:54:18 -05:00
parent 6e7de654b0
commit 5f5c0cdbc4

View File

@ -134,7 +134,7 @@ public class BeatmapParser {
// check if beatmap is cached
String path = String.format("%s/%s", dir.getName(), file.getName());
if (map.containsKey(path)) {
if (map != null && map.containsKey(path)) {
// check last modified times
long lastModified = map.get(path);
if (lastModified == file.lastModified()) {