You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2020/12/02 20:16:47 UTC

[cordova-ios] 01/01: (ios): nil check in didReceiveData in schemehandler

This is an automated email from the ASF dual-hosted git repository.

niklasmerz pushed a commit to branch fix903
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git

commit adcf6cae86f62018bd368c0a42d6d88e5f80ba5a
Author: Niklas Merz <ni...@linux.com>
AuthorDate: Wed Dec 2 21:15:23 2020 +0100

    (ios): nil check in didReceiveData in schemehandler
    
    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