v1.1.0: fixed poor crash messages when desktop crashes without natives

This commit is contained in:
Evan Debenham
2021-10-16 14:28:37 -04:00
parent d21c216a60
commit 4ee98f2578
@@ -275,7 +275,7 @@ public class Game implements ApplicationListener {
} }
public static void reportException( Throwable tr ) { public static void reportException( Throwable tr ) {
if (instance != null) { if (instance != null && Gdx.app != null) {
instance.logException(tr); instance.logException(tr);
} else { } else {
//fallback if error happened in initialization //fallback if error happened in initialization