Skip to content
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

check for nil before creating alert dictionary #410

Merged
merged 1 commit into from
Sep 9, 2018
Merged

check for nil before creating alert dictionary #410

merged 1 commit into from
Sep 9, 2018

Conversation

tylerwbell
Copy link
Contributor

@tylerwbell tylerwbell commented Sep 7, 2018

Description

Check that the buttons dictionary exists before creating a dictionary with its contents. This prevents the error: attempt to insert nil object from objects[0].

Reproduction Steps:

Tap a notification action that was added to a notification using notification categories in the client, rather than when creating the push in the dashboard.


This change is Reviewable

@Nightsd01 Nightsd01 merged commit 997d20f into OneSignal:master Sep 9, 2018
Nightsd01 added a commit that referenced this pull request Sep 10, 2018
• Fixes an issue (#410) where users that add buttons/functionality to a notification by directly using UNNotificationCategory instead of using our API would cause a crash
• Fixes a thread synchronization issue that would have deadlocked the main thread in very rare situations on initialization (#409)
• Fixes an issue where improperly formatted button JSON would cause the SDK to insert nil objects into an NSDictionary instance, causing an EXC_BAD_ACCESS (#409)
• Adds an additional dynamic framework/cocoapod for developers who previously encountered 'transitive dependency' errors using our SDK indirectly as a dependency of another cocoapod in Swidft projects
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.

2 participants