You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/09/27 02:07:39 UTC
[10/18] incubator-weex git commit: handle null
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/master
Commit: 96ce41b6391bc46fa10c3768581e830db2d6e511
Parents: e293d20
Author: jianbai.gbj <ji...@alibaba-inc.com>
Authored: Tue Sep 26 17:57:08 2017 +0800
Committer: jianbai.gbj <ji...@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();
}