java.lang.NullPointerException: Attempt to invoke interface method 'int com.demo.mpchart.IBarDataSet.getBarBorderColor()' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by kavitamp
, 9 months ago
Attempt to invoke interface method 'int com.demo.mpchart.IBarDataSet.getBarBorderColor()' on a null object reference
java.lang.NullPointerException: Attempt to invoke interface method 'int com.demo.mpchart.IBarDataSet.getBarBorderColor()' on a null object reference
at com.demo.mpchart.BarChartRenderer.drawDataSet(BarChartRenderer.java:114)
at com.demo.mpchart.BarChartRenderer.drawData(BarChartRenderer.java:77)
at com.smartbro.mpchart.BarLineChartBase.onDraw(BarLineChartBase.java:217)
at android.view.View.draw(View.java:17134)
at android.view.View.updateDisplayListIfDirty(View.java:16116)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.updateDisplayListIfDirty(View.java:16111)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.draw(View.java:17137)
at android.view.View.updateDisplayListIfDirty(View.java:16116)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.draw(View.java:17137)
at android.view.View.updateDisplayListIfDirty(View.java:16116)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.updateDisplayListIfDirty(View.java:16111)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.draw(View.java:17137)
at android.widget.ScrollView.draw(ScrollView.java:1735)
at android.view.View.updateDisplayListIfDirty(View.java:16116)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.draw(View.java:17137)
at android.view.View.updateDisplayListIfDirty(View.java:16116)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.draw(View.java:17137)
at android.view.View.updateDisplayListIfDirty(View.java:16116)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.updateDisplayListIfDirty(View.java:16111)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.updateDisplayListIfDirty(View.java:16111)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.updateDisplayListIfDirty(View.java:16111)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.updateDisplayListIfDirty(View.java:16111)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.updateDisplayListIfDirty(View.java:16111)
at android.view.View.draw(View.java:16900)
at android.view.ViewGroup.drawChild(ViewGroup.java:3764)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
at android.view.View.draw(View.java:17137)
at android.view.View.updateDisplayListIfDirty(View.java:16116)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:656)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:662)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:770)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2830)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2638)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2245)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1272)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6396)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
at android.view.Choreographer.doCallbacks(Choreographer.java:683)
at android.view.Choreographer.doFrame(Choreographer.java:619)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
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:6209)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.