v1.1.0: fixed poor crash messages when desktop crashes without natives
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user