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/26 03:29:14 UTC

[05/51] [abbrv] incubator-weex git commit: fix image view

fix image view


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

Branch: refs/heads/master
Commit: ff0af4e9148809b2cffb4363ede7f35ee24af699
Parents: ee3c6e3
Author: jianbai.gbj <ji...@alibaba-inc.com>
Authored: Thu Sep 21 22:07:56 2017 +0800
Committer: jianbai.gbj <ji...@alibaba-inc.com>
Committed: Thu Sep 21 22:07:56 2017 +0800

----------------------------------------------------------------------
 .../sdk/src/main/java/com/taobao/weex/ui/component/WXImage.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ff0af4e9/android/sdk/src/main/java/com/taobao/weex/ui/component/WXImage.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/WXImage.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/WXImage.java
index 46abdbc..1cf5d02 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/WXImage.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/WXImage.java
@@ -205,8 +205,10 @@ public class WXImage extends WXComponent<ImageView> {
       return;
     }
 
-    if(image.getDrawable() != null){
+    if(image != null){
+      if(image.getDrawable() != null){
          image.setImageDrawable(null);
+      }
     }