You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dp...@apache.org on 2020/12/03 16:42:12 UTC
[cordova-ios] branch master updated: (ios): nil check in
didReceiveData in schemehandler (#1035)
This is an automated email from the ASF dual-hosted git repository.
dpogue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push:
new be1cd7d (ios): nil check in didReceiveData in schemehandler (#1035)
be1cd7d is described below
commit be1cd7da2f32bf6c2ac41bf7a2d64ed011750e7d
Author: Niklas Merz <ni...@apache.org>
AuthorDate: Thu Dec 3 17:38:11 2020 +0100
(ios): nil check in didReceiveData in schemehandler (#1035)
Closes #903
---
CordovaLib/Classes/Public/CDVURLSchemeHandler.m | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/CordovaLib/Classes/Public/CDVURLSchemeHandler.m b/CordovaLib/Classes/Public/CDVURLSchemeHandler.m
index 6c88ceb..86e92ae 100644
--- a/CordovaLib/Classes/Public/CDVURLSchemeHandler.m
+++ b/CordovaLib/Classes/Public/CDVURLSchemeHandler.m
@@ -75,7 +75,9 @@
}
[urlSchemeTask didReceiveResponse:response];
- [urlSchemeTask didReceiveData:data];
+ if (data) {
+ [urlSchemeTask didReceiveData:data];
+ }
[urlSchemeTask didFinish];
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org