Skip to content
Permalink
Browse files

Fixes 5792 - Wrap error logic around NULL check

  • Loading branch information
CraftyDeano committed Oct 2, 2017
1 parent e71b03b commit 7f34a16eaeda6aa70b125eab64217d87116f771f
Showing with 6 additions and 3 deletions.
  1. +6 −3 AdblockPlusSafari/AdblockPlus+ActivityChecking.m
@@ -60,13 +60,16 @@ - (BOOL)shouldRespondToActivityTest:(NSError **)error;
if (self.performingActivityTest) {
// Cancel the reloading. This will reduce time of execution of execution of content blocker
// and therefore host application will be notified about result of testing ASAP.
if (error != NULL) {
*error = [NSError errorWithDomain:AdblockPlusErrorDomain
code:AdblockPlusErrorCodeActivityTest
userInfo:nil];
return true;
}

*error = nil;
return true;
}
if (error != NULL) {
*error = nil;
}
return false;
}

0 comments on commit 7f34a16

Please sign in to comment.
You can’t perform that action at this time.