diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/view/refresh/wrapper/BaseBounceView.java b/android/sdk/src/main/java/com/taobao/weex/ui/view/refresh/wrapper/BaseBounceView.java index e517ab1bd1..1809a78d02 100644 --- a/android/sdk/src/main/java/com/taobao/weex/ui/view/refresh/wrapper/BaseBounceView.java +++ b/android/sdk/src/main/java/com/taobao/weex/ui/view/refresh/wrapper/BaseBounceView.java @@ -213,6 +213,7 @@ import android.widget.FrameLayout; import com.taobao.weex.common.Constants; +import com.taobao.weex.dom.ImmutableDomObject; import com.taobao.weex.ui.component.WXComponent; import com.taobao.weex.ui.view.WXLoadingLayout; import com.taobao.weex.ui.view.WXRefreshLayout; @@ -329,8 +330,9 @@ public void setHeaderView(WXComponent refresh) { public void setFooterView(WXComponent loading) { setLoadmoreEnable(true); if (swipeLayout != null) { - if (swipeLayout.getFooterView() != null) { - swipeLayout.setLoadingHeight((int) loading.getDomObject().getLayoutHeight()); + ImmutableDomObject domObject; + if (swipeLayout.getFooterView() != null && (domObject = loading.getDomObject()) != null) { + swipeLayout.setLoadingHeight((int) domObject.getLayoutHeight()); String colorStr = (String) loading.getDomObject().getStyles().get(Constants.Name.BACKGROUND_COLOR); String bgColor = WXUtils.getString(colorStr, null);