jpardogo / GoogleProgressBar

Android library to display progress like google does in some of his services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting null pointer exception while showing progressbar

skyshine999 opened this issue · comments

I am using this library in viewpager i am getting this crash

java.lang.NullPointerException: Attempt to read from null array
at com.jpardogo.android.googleprogressbar.library.ChromeFloatingCirclesDrawable.draw(ChromeFloatingCirclesDrawable.java:189)
at android.widget.ProgressBar.drawTrack(ProgressBar.java:1803)
at android.widget.ProgressBar.onDraw(ProgressBar.java:1770)
at android.view.View.draw(View.java:17503)
at android.view.View.updateDisplayListIfDirty(View.java:16496)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3907)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3887)
at android.view.View.updateDisplayListIfDirty(View.java:16456)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3907)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3887)
at android.view.View.updateDisplayListIfDirty(View.java:16456)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3907)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3887)
at android.view.View.updateDisplayListIfDirty(View.java:16456)

Same here