Skip to content

Legend.getMaximumEntryWidth Error #806

Description

@ytheekshana
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'float info.appdev.charting.components.LegendEntry.getFormSize()' on a null object reference
       at info.appdev.charting.components.Legend.getMaximumEntryWidth(Legend.kt:195)
       at info.appdev.charting.components.Legend.calculateDimensions(Legend.kt:354)
       at info.appdev.charting.renderer.LegendRenderer.computeLegend(LegendRenderer.kt:196)
       at info.appdev.charting.charts.BarLineChartBase.notifyDataSetChanged(BarLineChartBase.kt:391)
       at info.appdev.charting.charts.Chart.onSizeChanged(Chart.kt:1173)
       at info.appdev.charting.charts.BarLineChartBase.onSizeChanged(BarLineChartBase.kt:1292)
       at android.view.View.sizeChange(View.java:20875)
       at android.view.View.setFrame(View.java:20836)
       at android.view.View.layout(View.java:20696)
       at android.view.ViewGroup.layout(ViewGroup.java:6198)
       at androidx.constraintlayout.widget.ConstraintLayout.onLayout(ConstraintLayout.java:1961)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions