Skip to content

Crashing when reutilizing  #227

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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