Skip to content

Make loading of PFInstallation.currentInstallation() fully async. #817

@fluidsonic

Description

@fluidsonic

A crash was reported which was caused by an exception thrown by Parse SDK 1.12.0.
It originates from a simple call to PFInstallation.currentInstallation().

Here's the relevant stack trace from the crash log:

+[NSException raise:format:] (NSException.m:140)
-[PFObject(Private) _setObject:forKey:onlyIfDifferent:] (PFObject.m:1485)
__56-[PFCurrentInstallationController getCurrentObjectAsync]_block_invoke35 (PFCurrentInstallationController.m:127)

(different thread)

-[BFTask(Private) waitForResult:withMainThreadWarning:] (BFTask+Private.m:125)
+[PFInstallation currentInstallation] (PFInstallation.m:136)

The offending line PFCurrentInstallationController.m:127 is

installation.installationId = installationId;

So installationId is likely nil for some reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions