diff --git a/library/src/main/java/com/heinrichreimersoftware/materialintro/view/FadeableViewPager.java b/library/src/main/java/com/heinrichreimersoftware/materialintro/view/FadeableViewPager.java index bedb2fd..3a966cf 100644 --- a/library/src/main/java/com/heinrichreimersoftware/materialintro/view/FadeableViewPager.java +++ b/library/src/main/java/com/heinrichreimersoftware/materialintro/view/FadeableViewPager.java @@ -110,7 +110,7 @@ public int getCount() { @Override public boolean isViewFromObject(View view, Object object) { - return adapter.isViewFromObject(view, object); + return object != null && adapter.isViewFromObject(view, object); } @Override