From af8fc52e2fd7050a2552efcbdc0a33af825ea4be Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Sat, 11 Jan 2020 11:26:53 +0800 Subject: [PATCH] Ignore exception if bootError != null Former-commit-id: 45f52d1159754b7ed7e52252758a367bc2a94fe5 --- .../java/org/maxgamer/quickshop/Util/SentryErrorReporter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java b/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java index 02f7a0c00..badd6e809 100644 --- a/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java +++ b/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java @@ -186,6 +186,9 @@ public class SentryErrorReporter { */ public @Nullable UUID sendError(@NotNull Throwable throwable, @NotNull String... context) { try { + if(QuickShop.instance.getBootError() != null){ + return null; //Don't report any errors if boot failed. + } if (tempDisable) { Util.debugLog("Ignore a throw, cause this throw flagged not reporting."); this.tempDisable = true;