Skip to content

Commit

Permalink
Fix crash if mExternalRequestDelegate is not set (#3956)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Aug 23, 2021
1 parent fbac250 commit d6c3b91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ public void loadUri(String aUri, int flags) {
}
if (mState.mSession != null) {
Log.d(LOGTAG, "Loading URI: " + aUri);
if (!mExternalRequestDelegate.onHandleExternalRequest(aUri)) {
if (mExternalRequestDelegate == null || !mExternalRequestDelegate.onHandleExternalRequest(aUri)) {
mState.mSession.loadUri(aUri, flags);
}
}
Expand Down

0 comments on commit d6c3b91

Please sign in to comment.