Fixed a null pointer exception. (fixes #162)

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2015-12-14 19:02:37 -05:00
parent 8c4e5ac264
commit 1e58b3c47d

View File

@ -132,7 +132,7 @@ public class BeatmapParser {
return name.toLowerCase().endsWith(".osu");
}
});
if (files.length < 1)
if (files == null || files.length < 1)
continue;
// create a new group entry