aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorColin Wong <cwongmath@gmail.com>2023-11-03 16:12:01 -0500
committerGitHub <noreply@github.com>2023-11-04 08:12:01 +1100
commitda0e3fccd7e8f22bdab453609ec70ab7f59744f8 (patch)
tree36e6a2051a09bfcefa78c194f9fc429e672ed037 /src
parent2a6d3a96d40ca425e661737fb4fc467b2040437b (diff)
downloadNotEnoughUpdates-da0e3fccd7e8f22bdab453609ec70ab7f59744f8.tar.gz
NotEnoughUpdates-da0e3fccd7e8f22bdab453609ec70ab7f59744f8.tar.bz2
NotEnoughUpdates-da0e3fccd7e8f22bdab453609ec70ab7f59744f8.zip
Catch gson exception (#912)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java
index ad0000d4..ad2a0542 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java
@@ -21,6 +21,7 @@ package io.github.moulberry.notenoughupdates.util;
import com.google.common.reflect.TypeToken;
import com.google.gson.JsonObject;
+import com.google.gson.JsonSyntaxException;
import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
import io.github.moulberry.notenoughupdates.autosubscribe.NEUAutoSubscribe;
import io.github.moulberry.notenoughupdates.events.SidebarChangeEvent;
@@ -228,6 +229,8 @@ public class SBInfo {
areGamemodesLoaded = true;
} catch (IOException e) {
e.printStackTrace();
+ } catch (JsonSyntaxException e) {
+ e.printStackTrace();
}
}