Skip to content

Crashing when reutilizing  #227

@mnievas

Description

@mnievas

Version: 3.0.13
File: JBLineChartDotsView.m
When animating a second line (at least).

In line of 74, this code returns a NSNull object.
__block UIView *dotView = [mutableReusableDotViews jb_pop];

Then in this line (76), it crashes because NSNull does not have a .center, obviously :)

dotView.center = CGPointMake(lineChartPoint.position.x, lineChartPoint.position.y); // animate move

Thanks in advance.
Marce.

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