diff --git a/library/src/main/java/com/lxj/xpopup/core/BottomPopupView.java b/library/src/main/java/com/lxj/xpopup/core/BottomPopupView.java index 9cbfdea9..2e35507c 100644 --- a/library/src/main/java/com/lxj/xpopup/core/BottomPopupView.java +++ b/library/src/main/java/com/lxj/xpopup/core/BottomPopupView.java @@ -60,6 +60,7 @@ public void onClose() { @Override public void onDrag(int value, float percent, boolean isScrollUp) { + if(popupInfo==null)return; if(popupInfo.xPopupCallback!=null) popupInfo.xPopupCallback.onDrag(BottomPopupView.this, value, percent,isScrollUp); if (popupInfo.hasShadowBg && !popupInfo.hasBlurBg) setBackgroundColor(shadowBgAnimator.calculateBgColor(percent)); }