java.lang.NullPointerException: Attempt to invoke virtual method 'long android.graphics.Paint.getNativeInstance()' on a null object reference

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 98#231561332
    via GitHub by joeykrim
    ,
  • canvas draw line in android
    via Stack Overflow by lululoo
    ,
  • created L-shaped background
    via Stack Overflow by learner
    ,
    • java.lang.NullPointerException: Attempt to invoke virtual method 'long android.graphics.Paint.getNativeInstance()' on a null object reference at android.graphics.Canvas.drawLine(Canvas.java:1073) at com.db.chart.view.ChartView.drawVerticalGrid(ChartView.java:800) at com.db.chart.view.ChartView.onDraw(ChartView.java:730) at android.view.View.draw(View.java:16184) at android.view.View.buildDrawingCacheImpl(View.java:15480) at android.view.View.buildDrawingCache(View.java:15341) at android.view.View.draw(View.java:15947) at android.view.ViewGroup.drawChild(ViewGroup.java:3609) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) at android.view.View.updateDisplayListIfDirty(View.java:15175) at android.view.View.draw(View.java:15954) at android.view.ViewGroup.drawChild(ViewGroup.java:3609) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) at android.view.View.draw(View.java:16187) at android.view.View.updateDisplayListIfDirty(View.java:15180) at android.view.View.draw(View.java:15954) at android.view.ViewGroup.drawChild(ViewGroup.java:3609) at android.support.v7.widget.RecyclerView.drawChild(RecyclerView.java:3588) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399) at android.view.View.draw(View.java:16187) at android.support.v7.widget.RecyclerView.draw(RecyclerView.java:3097) at android.view.View.updateDisplayListIfDirty(View.java:15180) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573) at android.view.View.updateDisplayListIfDirty(View.java:15140) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)

    Users with the same issue

    Unknown visitor1 times, last one,
    Bardh
    Bardh2 times, last one,
    Unknown visitor1 times, last one,