diff --git a/OsmAnd/src/net/osmand/plus/OsmandApplication.java b/OsmAnd/src/net/osmand/plus/OsmandApplication.java index 53b1938ad2..1e423fc1e4 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandApplication.java +++ b/OsmAnd/src/net/osmand/plus/OsmandApplication.java @@ -548,7 +548,10 @@ public class OsmandApplication extends MultiDexApplication { } public void startApplication() { - Thread.setDefaultUncaughtExceptionHandler(new DefaultExceptionHandler()); + UncaughtExceptionHandler uncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler(); + if (!(uncaughtExceptionHandler instanceof DefaultExceptionHandler)) { + Thread.setDefaultUncaughtExceptionHandler(new DefaultExceptionHandler()); + } appInitializer.startApplication(); }