Skip to content

Commit

Permalink
Merge pull request #19 from mparticle-integrations/disable-fix
Browse files Browse the repository at this point in the history
Prevent possible crash if braze sdk is disabled
  • Loading branch information
samdozor authored Oct 2, 2018
2 parents 6da58bc + 3a5adaf commit b1f9f7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mParticle-Appboy/MPKitAppboy.m
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ - (void)start {
withLaunchOptions:self.launchOptions
withAppboyOptions:optionsDict];

if (![Appboy sharedInstance] ) {
return;
}
CFTypeRef appboyRef = CFRetain((__bridge CFTypeRef)[Appboy sharedInstance]);
self->appboyInstance = (__bridge Appboy *)appboyRef;

Expand Down

0 comments on commit b1f9f7c

Please sign in to comment.