From 1e58b3c47d4cdd9d07c619209413cd9fdb2f84d8 Mon Sep 17 00:00:00 2001 From: Jeffrey Han Date: Mon, 14 Dec 2015 19:02:37 -0500 Subject: [PATCH] Fixed a null pointer exception. (fixes #162) Signed-off-by: Jeffrey Han --- src/itdelatrisu/opsu/beatmap/BeatmapParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itdelatrisu/opsu/beatmap/BeatmapParser.java b/src/itdelatrisu/opsu/beatmap/BeatmapParser.java index 7a56a1b2..c7004703 100644 --- a/src/itdelatrisu/opsu/beatmap/BeatmapParser.java +++ b/src/itdelatrisu/opsu/beatmap/BeatmapParser.java @@ -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