diff --git a/android/capacitor/src/main/java/com/getcapacitor/BridgeFragment.java b/android/capacitor/src/main/java/com/getcapacitor/BridgeFragment.java index e60e988cc..a527a7a58 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/BridgeFragment.java +++ b/android/capacitor/src/main/java/com/getcapacitor/BridgeFragment.java @@ -153,7 +153,9 @@ public void onActivityCreated(Bundle savedInstanceState) { @Override public void onDestroy() { super.onDestroy(); - this.bridge.onDestroy(); + if (this.bridge != null) { + this.bridge.onDestroy(); + } if (this.mockWebView != null) { mockWebView.handleDestroy(); }