mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
[Mobile] ExceptionInInitializerError (forge.screens.FScreen in <init>)
- it seems it was trying to draw the bug reporter interface while ending the graphics if sentry is not enabled
This commit is contained in:
@@ -472,6 +472,8 @@ public class Forge implements ApplicationListener {
|
|||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
graphics.end();
|
graphics.end();
|
||||||
|
//check if sentry is enabled, if not it will call the gui interface but here we end the graphics so we only send it via sentry..
|
||||||
|
if (BugReporter.isSentryEnabled())
|
||||||
BugReporter.reportException(ex);
|
BugReporter.reportException(ex);
|
||||||
} finally {
|
} finally {
|
||||||
if(dispose)
|
if(dispose)
|
||||||
@@ -524,6 +526,8 @@ public class Forge implements ApplicationListener {
|
|||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
graphics.end();
|
graphics.end();
|
||||||
|
//check if sentry is enabled, if not it will call the gui interface but here we end the graphics so we only send it via sentry..
|
||||||
|
if (BugReporter.isSentryEnabled())
|
||||||
BugReporter.reportException(ex);
|
BugReporter.reportException(ex);
|
||||||
}
|
}
|
||||||
if (showFPS)
|
if (showFPS)
|
||||||
@@ -544,6 +548,8 @@ public class Forge implements ApplicationListener {
|
|||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
graphics.end();
|
graphics.end();
|
||||||
|
//check if sentry is enabled, if not it will call the gui interface but here we end the graphics so we only send it via sentry..
|
||||||
|
if (BugReporter.isSentryEnabled())
|
||||||
BugReporter.reportException(ex);
|
BugReporter.reportException(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ public class BugReporter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isSentryEnabled() {
|
public static boolean isSentryEnabled() {
|
||||||
return FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.USE_SENTRY);
|
return FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.USE_SENTRY);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user