Skip to content

Commit

Permalink
Add fix for Firebase.
Browse files Browse the repository at this point in the history
Closes #270
  • Loading branch information
LeoNatan committed Oct 17, 2017
1 parent dc15718 commit 9de3f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detox/ios/Detox/DetoxAppDelegateProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ + (void)load
void (*orig)(id, SEL, id<UIApplicationDelegate>) = (void*)method_getImplementation(m);
method_setImplementation(m, imp_implementationWithBlock(^ (id _self, id<UIApplicationDelegate> origDelegate) {
//Only create a dupe class if the provided instance is not already a dupe class.
if([origDelegate respondsToSelector:@selector(__dtx_canaryInTheCoalMine)] == NO)
if(origDelegate != nil && [origDelegate respondsToSelector:@selector(__dtx_canaryInTheCoalMine)] == NO)
{

NSString* clsName = [NSString stringWithFormat:@"%@(%@)", NSStringFromClass([origDelegate class]), NSStringFromClass([DetoxAppDelegateProxy class])];
Expand Down

0 comments on commit 9de3f01

Please sign in to comment.