java.lang.NullPointerException

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.

  • Balloon
    via GitHub by jumper0k
    ,
  • NPE in onMeasure
    via GitHub by mrtristan
    ,
    • java.lang.NullPointerException at android.graphics.Paint_Delegate.nGetFontMetricsInt(Paint_Delegate.java:607) at android.graphics.Paint.nGetFontMetricsInt(Paint.java) at android.graphics.Paint.getFontMetricsInt(Paint.java:1668) at android.text.TextLine.expandMetricsFromPaint(TextLine.java:661) at android.text.TextLine.handleRun(TextLine.java:860) at android.text.TextLine.measureRun(TextLine.java:387) at android.text.TextLine.measure(TextLine.java:277) at android.text.TextLine.metrics(TextLine.java:251) at android.text.BoringLayout.isBoring(BoringLayout.java:310) at android.widget.TextView.onMeasure(TextView.java:7069) at android.view.View.measure(View.java:19731) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464) at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1117) at android.widget.LinearLayout.onMeasure(LinearLayout.java:642) at android.view.View.measure(View.java:19731) at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461) at android.view.View.measure(View.java:19731) at com.android.layoutlib.bridge.impl.RenderSessionImpl.measureView(RenderSessionImpl.java:545) at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:342) at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429) at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389) at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:548) at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:533) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966) at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:533) at com.android.tools.idea.rendering.RenderTask.lambda$inflate$53(RenderTask.java:659)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    kormankorman
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    5 more bugmates