Skip to content

Commit deb6a11

Browse files
committed
catch Throwable instead of Exception to prevent silent failures
1 parent dc8d2e1 commit deb6a11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugins/cordova-plugin-crashhandler/src/android/CrashHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void uncaughtException(Thread thread, Throwable ex) {
4242
Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK
4343
);
4444
context.startActivity(intent);
45-
} catch (Exception e) {
45+
} catch (Throwable e) {
4646
Log.e(TAG, "Failed to launch CrashActivity", e);
4747
} finally {
4848
//Should we terminate the app? or let it run with faulty state?

0 commit comments

Comments
 (0)