Repository: incubator-weex
Updated Branches:
  refs/heads/0.16-dev 81d08efce -> d1e733b2a


handle null


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/96ce41b6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/96ce41b6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/96ce41b6

Branch: refs/heads/0.16-dev
Commit: 96ce41b6391bc46fa10c3768581e830db2d6e511
Parents: e293d20
Author: jianbai.gbj <jianbai....@alibaba-inc.com>
Authored: Tue Sep 26 17:57:08 2017 +0800
Committer: jianbai.gbj <jianbai....@alibaba-inc.com>
Committed: Tue Sep 26 17:57:08 2017 +0800

----------------------------------------------------------------------
 android/sdk/src/main/java/com/taobao/weex/dom/WXEvent.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/96ce41b6/android/sdk/src/main/java/com/taobao/weex/dom/WXEvent.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/dom/WXEvent.java 
b/android/sdk/src/main/java/com/taobao/weex/dom/WXEvent.java
index 942979f..fe7f8cf 100644
--- a/android/sdk/src/main/java/com/taobao/weex/dom/WXEvent.java
+++ b/android/sdk/src/main/java/com/taobao/weex/dom/WXEvent.java
@@ -109,6 +109,9 @@ public class WXEvent extends ArrayList<String> implements 
Serializable, Cloneabl
       String eventName = bindings.getString(WXEvent.EVENT_KEY_TYPE);
       return  eventName;
     }
+    if(event == null){
+      return  null;
+    }
     return  event.toString();
   }
 

Reply via email to