From b537b83736b6afef9a9b2c8ca5bae99031afb6bd Mon Sep 17 00:00:00 2001 From: MatteoS Date: Sat, 8 Aug 2015 16:29:08 +0200 Subject: [PATCH] Game doesn't crash when being unable to go to the github repo page --- src/itdelatrisu/opsu/states/MainMenu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itdelatrisu/opsu/states/MainMenu.java b/src/itdelatrisu/opsu/states/MainMenu.java index 383557d3..50dfd3b4 100644 --- a/src/itdelatrisu/opsu/states/MainMenu.java +++ b/src/itdelatrisu/opsu/states/MainMenu.java @@ -501,7 +501,7 @@ public class MainMenu extends BasicGameState { else if (repoButton != null && repoButton.contains(x, y)) { try { Desktop.getDesktop().browse(Options.REPOSITORY_URI); - } catch (IOException e) { + } catch (IOException | UnsupportedOperationException e) { ErrorHandler.error("Could not browse to repository URI.", e, false); } }