janheinrichmerker / material-intro

A simple material design app intro with cool animations and a fluent API.
https://jitpack.io/#com.heinrichreimer/material-intro
MIT License
1.74k stars 305 forks source link

NullPointerException #300

Open badoyg opened 4 years ago

badoyg commented 4 years ago

On many devices I'm using the latest version of the library but I get this fatal error:

Fatal Exception: java.lang.NullPointerException: Attempt to read from null array at com.heinrichreimersoftware.materialintro.view.InkPageIndicator.setSelectedPage(InkPageIndicator.java:67) at com.heinrichreimersoftware.materialintro.view.InkPageIndicator.onPageSelected(InkPageIndicator.java:4) at com.heinrichreimersoftware.materialintro.view.FadeableViewPager$OnPageChangeListenerWrapper.onPageSelected(FadeableViewPager.java:31) at androidx.viewpager.widget.ViewPager.dispatchOnPageSelected(ViewPager.java:28) at androidx.viewpager.widget.ViewPager.setCurrentItemInternal(ViewPager.java:96) at androidx.viewpager.widget.ViewPager.setCurrentItemInternal(ViewPager.java:3) at com.heinrichreimersoftware.materialintro.view.SwipeBlockableViewPager.onRestoreInstanceState(SwipeBlockableViewPager.java:29) at android.view.View.dispatchRestoreInstanceState(View.java:19876) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3860) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3866) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3866) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3866) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3866) at android.view.View.restoreHierarchyState(View.java:19854) at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2188) at android.app.Activity.onRestoreInstanceState(Activity.java:1567) at android.app.Activity.performRestoreInstanceState(Activity.java:1522) at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1375) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3495) at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221) at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ClientTransactionHandler.executeTransaction(ClientTransactionHandler.java:57) at android.app.ActivityThread.handleRelaunchActivityLocally(ActivityThread.java:5451) at android.app.ActivityThread.access$3500(ActivityThread.java:233) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2174) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:241) at android.app.ActivityThread.main(ActivityThread.java:7582) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941)