You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2018/05/07 07:53:08 UTC

[35/52] [abbrv] incubator-weex git commit: * [Core] Fix crash NPE.

* [Core] Fix crash NPE.


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

Branch: refs/heads/master
Commit: bf3c83d990418df4a9b1ec05bc76a61f1570c5ef
Parents: 16d4eb8
Author: miomin <69...@qq.com>
Authored: Sat Apr 28 16:41:01 2018 +0800
Committer: YorkShen <sh...@gmail.com>
Committed: Mon May 7 15:52:08 2018 +0800

----------------------------------------------------------------------
 .../com/taobao/weex/ui/component/list/BasicListComponent.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bf3c83d9/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
index 742f164..fb57c32 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
@@ -476,8 +476,10 @@ public abstract class BasicListComponent<T extends ViewGroup & ListComponentView
         }
       };
     }
-    getHostView().removeCallbacks(mAppearComponentsRunnable);
-    getHostView().postDelayed(mAppearComponentsRunnable, mAppearDelay);
+    if (getHostView() != null) {
+      getHostView().removeCallbacks(mAppearComponentsRunnable);
+      getHostView().postDelayed(mAppearComponentsRunnable, mAppearDelay);
+    }
   }
 
   @Override