Skip to content

PFObject fetchInBackgroundWithBlock returns nil for fetched object #105

@iosdev-republicofapps

Description

@iosdev-republicofapps

I used to have code like the following that worked perfectly, without fail, in Parse OS X SDK version 1.6.3, but now fails every single time in Parse OS X SDK version 1.8.1:

PFObject object = ...; // Some object from the cloud

// Make some local changes to object ...

[object saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
  if (succeeded) {
    [object fetchInBackgroundWithBlock:^(PFObject *fetched, NSError *error) {
       // In Parse OS X SDK version 1.6.3 fetched was always non-nil.
       // In Parse OS X SDK version 1.8.1 fetched is always nil.
    }
  }
}];

So fetchInBackgroundWithBlock now always returns nil for an object that originally came from the cloud and definitely exists. Why is it returning nil all of a sudden now? None of my code has changed ... This is definitely a new bug in the Parse OS X SDK.

This is a blocking bug for me.

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