Skip to content

objectId should be non nil #1520

@carbonimax

Description

@carbonimax

Hi,

Since a few weeks, at app launch, for some users (±0.1%), the app crashes on PFRESTObjectCommand.m line 21 with this error:

Fatal Exception: NSInvalidArgumentException
objectId should be non nil

At launch, we sync the current PFUser and we call PFUser.enableAutomaticUser().
I don't know which object could have a nil objectId.
If I add some debug, currentUser.objectId and currentUser.session are OK.

PFObject._validateFetchAsync is called just before Just before PFRestObjectCommand.fetchObjectCommandForObjectState:withSessionToken and it doesn't catch some invalid objectId.

A re-installation of the app correct the problem.

Do you have any idea where this might be coming from?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions