Catch UnknownHostException and write a friendlier warning.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-06-12 14:52:31 -05:00
parent 44da08d7a1
commit 101425a562
2 changed files with 9 additions and 2 deletions

View File

@@ -479,7 +479,7 @@ public class BeatmapDB {
beatmap.epilepsyWarning = rs.getBoolean(35);
String bg = rs.getString(36);
if (bg != null)
beatmap.bg = new File(dir, BeatmapParser.getDBString(rs.getString(36)));
beatmap.bg = new File(dir, BeatmapParser.getDBString(bg));
beatmap.sliderBorderFromString(rs.getString(37));
} catch (SQLException e) {
throw e;