Skip to content

Ensure handling of nil dictionaries in didFinishUserInfoTransfer#132

Open
danshilcock wants to merge 1 commit into
watch-connectivity:masterfrom
danshilcock:master
Open

Ensure handling of nil dictionaries in didFinishUserInfoTransfer#132
danshilcock wants to merge 1 commit into
watch-connectivity:masterfrom
danshilcock:master

Conversation

@danshilcock
Copy link
Copy Markdown

When transferCurrentComplicationUserInfo fails on iOS (e.g., no watch paired, no complications configured, or daily transfer limit exceeded), the didFinishUserInfoTransfer:error: delegate method is called with an NSError.

Both of these can return nil and NSDictionary cannot contain nil values causing a crash.

The fix adds empty directories as a fallback when error or transferUserInfo is nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant