You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by lu...@apache.org on 2019/09/18 07:04:24 UTC

[incubator-weex] branch master updated: [Android] Avoid multiple error. (#2915)

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

luckychen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new 4ce90b0  [Android] Avoid multiple error. (#2915)
4ce90b0 is described below

commit 4ce90b04b2d64f24030bfb3d079ea19ca676e249
Author: YorkShen <sh...@gmail.com>
AuthorDate: Wed Sep 18 15:04:19 2019 +0800

    [Android] Avoid multiple error. (#2915)
---
 android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
index 6c2f5e5..3a933c7 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
@@ -709,7 +709,7 @@ public abstract class WXComponent<T extends View> extends WXBasicComponent imple
     for (Map.Entry<String, Object> entry : props.entrySet()) {
       Object key_obj = entry.getKey();
       String key = WXUtils.getString(key_obj, null);
-      if (!(key_obj instanceof String)) {
+      if ((key != null) && !(key_obj instanceof String)) {
         Map<String, String> map = new HashMap<>();
         map.put("componentType", getComponentType());
         map.put("actual key", key == null ? "" : key);