SkygearIO / skygear-SDK-iOS

Skygear SDK for iOS
https://skygear.io
Other
10 stars 28 forks source link

Persist current user information #50

Closed cheungpat closed 8 years ago

cheungpat commented 8 years ago

User information (SKYUser) is now persisted to NSUserDefaults when SKYContainer current user changes. This will happen automatically after user authentication operations.

connects #49

oursky-travis commented 8 years ago

@cheungpat, thanks for your PR! By analyzing the annotation information on this pull request, we identified @rickmak to be a potential reviewer

cheungpat commented 8 years ago

Unable to reproduce the error you mentioned. @rickmak

cheungpat commented 8 years ago

Need your help tomorrow to reproduce this issue. @rickmak

cheungpat commented 8 years ago

@rickmak The error you mentioned has been resolved. The error occurred because currentUser is a non-null optional (due to lack of nullability annotations in SKYContainer) and accessing the content of the property without checking it first lead to error.