Skip to content

Commit

Permalink
(ios): nil check in didReceiveData in schemehandler (#1035)
Browse files Browse the repository at this point in the history
Closes #903
  • Loading branch information
NiklasMerz authored Dec 3, 2020
1 parent 8d7845a commit be1cd7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CordovaLib/Classes/Public/CDVURLSchemeHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ - (void)webView:(WKWebView *)webView startURLSchemeTask:(id <WKURLSchemeTask>)ur
}

[urlSchemeTask didReceiveResponse:response];
[urlSchemeTask didReceiveData:data];
if (data) {
[urlSchemeTask didReceiveData:data];
}
[urlSchemeTask didFinish];

}
Expand Down

0 comments on commit be1cd7d

Please sign in to comment.