IndicatorSeekBar
IndicatorSeekBar copied to clipboard
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Paint.setColor(int)'
when calling
seekBarTwo.hideThumbText(false)
from the code, library is crashing with following error -
Process: com.example.debug, PID: 4162 java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Paint.setColor(int)' on a null object reference at com.warkiz.widget.IndicatorSeekBar.drawThumbText(IndicatorSeekBar.java:634) at com.warkiz.widget.IndicatorSeekBar.onDraw(IndicatorSeekBar.java:469) at android.view.View.draw(View.java:18398) at android.view.View.updateDisplayListIfDirty(View.java:17376) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3952) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3932) at android.view.View.updateDisplayListIfDirty(View.java:17339) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3952) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3932) at android.view.View.updateDisplayListIfDirty(View.java:17339) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3952) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3932) at android.view.View.updateDisplayListIfDirty(View.java:17339) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3952) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3932) at android.view.View.updateDisplayListIfDirty(View.java:17339) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3952) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3932) at android.view.View.updateDisplayListIfDirty(View.java:17339) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3952) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3932) at android.view.View.updateDisplayListIfDirty(View.java:17339) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3952) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3932) at android.view.View.updateDisplayListIfDirty(View.java:17339) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3952) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3932) at android.view.View.updateDisplayListIfDirty(View.java:17339) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3952) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3932) at android.view.View.updateDisplayListIfDirty(View.java:17339) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:722) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:728) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:836) at android.view.ViewRootImpl.draw(ViewRootImpl.java:3168) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2964) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2552) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1537) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7183) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:959) at android.view.Choreographer.doCallbacks(Choreographer.java:734) at android.view.Choreographer.doFrame(Choreographer.java:670) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:945) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6776) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1518) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)