Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling deleteAll:error: on an empty array causes a crash #253

Closed
ghugues opened this issue Sep 14, 2015 · 1 comment
Closed

Calling deleteAll:error: on an empty array causes a crash #253

ghugues opened this issue Sep 14, 2015 · 1 comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Milestone

Comments

@ghugues
Copy link

ghugues commented Sep 14, 2015

This will cause a crash :

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
    [PFObject deleteAll:@[] error:nil];
});

This is because deleteAllInBackground: returns a task whose result is not a boolean wrapped in an NSNumber when the array is empty.

@nlutsenko
Copy link
Contributor

Indeed. Fixing in a bit.

@nlutsenko nlutsenko self-assigned this Sep 14, 2015
@nlutsenko nlutsenko added the type:bug Impaired feature or lacking behavior that is likely assumed label Sep 14, 2015
@nlutsenko nlutsenko added this to the 1.8.4 milestone Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

2 participants