royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [royale-asjs] branch develop updated: Don’t parse missing data Fixes #70
Date Mon, 13 Nov 2017 07:56:23 GMT
This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 9d9f7cb  Don’t parse missing data Fixes #70
9d9f7cb is described below

commit 9d9f7cbc4fefcab547ecf2c3a1a3f58a60ac4efb
Author: Harbs <harbs@in-tools.com>
AuthorDate: Mon Nov 13 09:56:17 2017 +0200

    Don’t parse missing data
    Fixes #70
---
 .../Network/src/main/royale/org/apache/royale/net/HTTPService.as        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPService.as
b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPService.as
index a04a21d..e82e594 100644
--- a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPService.as
+++ b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPService.as
@@ -734,7 +734,7 @@ package org.apache.royale.net
          */
         public function get json():Object
         {
-            if (!_json)
+            if (!_json && data)
                 _json = JSON.parse(data);
             return _json;
         }

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <commits@royale.apache.org>'].

Mime
View raw message