laenger / ViewPagerBottomSheet

Use ViewPagers in Bottom Sheets!
Apache License 2.0
465 stars 86 forks source link

java.lang.NullPointerException #33

Open allenli0413 opened 5 years ago

allenli0413 commented 5 years ago

Attempt to invoke virtual method 'java.lang.Object java.lang.ref.WeakReference.get()' on a null object reference biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.invalidateScrollingChild(ViewPagerBottomSheetBehavior.java:433) final View scrollingChild = findScrollingChild(mViewRef.get()); mViewRef is null;

ahsan7766 commented 5 years ago

I am also getting similiar to this error . No Clue how to resolve this . java.lang.NullPointerException: at android.support.v4.view.ViewCompat.isNestedScrollingEnabled (ViewCompat.java:2480) at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.findScrollingChild (ViewPagerBottomSheetBehavior.java:609) at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.findScrollingChild (ViewPagerBottomSheetBehavior.java:615) at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.findScrollingChild (ViewPagerBottomSheetBehavior.java:622) at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.findScrollingChild (ViewPagerBottomSheetBehavior.java:622) at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.onLayoutChild (ViewPagerBottomSheetBehavior.java:252)