-
-
Notifications
You must be signed in to change notification settings - Fork 875
Exception when [Parse setApplicationId:clientKey:] is called twice #159
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
Comments
Hey @wzs, thanks for report.
|
Implemented in #874 |
The label |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recently I've found in our codebase that
+[Parse setApplicationId:clientKey:]
was called twice during app initialization (with same params).It was obviously mistake, but by the way I've found that in that case SDK throws exceptions, ie:
during call to
-[PFCommandURLRequestConstructor _URLRequestHeadersForCommand]
,dataSource
becamenil
(it's a weak reference toParseManager
).It'd be nice to have an assertion preventing from changing applicationId/clientKey after it's set already or cancel all ongoing operations started from the old instance of ParseManager.
The text was updated successfully, but these errors were encountered: