Skip to content

Commit

Permalink
fix(android): BridgeFragment NullPointerException (ionic-team#3553)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkirc authored and carlpoole committed Sep 24, 2020
1 parent fae50b6 commit 5133e2e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 5133e2e

Please sign in to comment.