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

GitHub | joeykrim | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 98#231561332

    GitHub | 9 months ago | joeykrim
    java.lang.NullPointerException: Attempt to invoke virtual method 'long android.graphics.Paint.getNativeInstance()' on a null object reference
  2. 0

    Using Line Chart In RecyclerView Error Paint.getNativeInstance()' on a null object reference

    GitHub | 5 months ago | sahilwebmazix
    java.lang.NullPointerException: Attempt to invoke virtual method 'long android.graphics.Paint.getNativeInstance()' on a null object reference.
  3. 0

    canvas draw line in android

    Stack Overflow | 4 years ago | lululoo
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue with closing FAB without animation on NavigationDrawer

    GitHub | 2 years ago | ashwanikumar04
    java.lang.NullPointerException: Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference

  1. Bardh 2 times, last 10 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

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

    at android.graphics.Canvas.drawLine()
  2. Android Platform
    Canvas.drawLine
    1. android.graphics.Canvas.drawLine(Canvas.java:1073)
    1 frame
  3. com.db.chart
    ChartView.onDraw
    1. com.db.chart.view.ChartView.drawVerticalGrid(ChartView.java:800)
    2. com.db.chart.view.ChartView.onDraw(ChartView.java:730)
    2 frames
  4. Android Platform
    ViewGroup.drawChild
    1. android.view.View.draw(View.java:16184)
    2. android.view.View.buildDrawingCacheImpl(View.java:15480)
    3. android.view.View.buildDrawingCache(View.java:15341)
    4. android.view.View.draw(View.java:15947)
    5. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
    6. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
    7. android.view.View.updateDisplayListIfDirty(View.java:15175)
    8. android.view.View.draw(View.java:15954)
    9. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
    10. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
    11. android.view.View.draw(View.java:16187)
    12. android.view.View.updateDisplayListIfDirty(View.java:15180)
    13. android.view.View.draw(View.java:15954)
    14. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
    14 frames
  5. Android v7
    RecyclerView.drawChild
    1. android.support.v7.widget.RecyclerView.drawChild(RecyclerView.java:3588)
    1 frame
  6. Android Platform
    View.draw
    1. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
    2. android.view.View.draw(View.java:16187)
    2 frames
  7. Android v7
    RecyclerView.draw
    1. android.support.v7.widget.RecyclerView.draw(RecyclerView.java:3097)
    1 frame
  8. Android Platform
    ViewGroup.dispatchGetDisplayList
    1. android.view.View.updateDisplayListIfDirty(View.java:15180)
    2. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
    3. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
    4. android.view.View.updateDisplayListIfDirty(View.java:15140)
    5. android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
    6. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
    6 frames