Skip to content
This repository was archived by the owner on Apr 25, 2018. It is now read-only.
This repository was archived by the owner on Apr 25, 2018. It is now read-only.

EXC_BAD_ACCESS in buildURL method #31

Description

@Jon889

In the buildURL method of the SKRequestBuilders, if no predicate is set the app crashes with EXC_BAD_ACCESS.
Eg in _SKRequestBuilderTags:
It occurs on line 62.

I think this is because sortRange is nil, because there is no predicate to get it from.

For some reason (sortRange.lower != SKNotFound) (where SKNotFound is defined as nil), on line 61, evaluates as true.
Because it's EXC_BAD_ACCESS I can't print its description.
Strangely (well to me anyway) it only crashes on the device, and not in the simulator.

I've just added an if statement to my local copy checking if there is a predicate at all, and surrounded all the relevant code, but I'm not sure if that's the best thing to do.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions