Skip to content

Commit

Permalink
Adding a missing null check to GameHelper.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Oliveira committed Mar 12, 2014
1 parent fbd0695 commit e7b3758
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -740,6 +740,10 @@ void resolveConnectionResult() {
debugLog("We're already expecting the result of a previous resolution.");
return;
}
if (mActivity == null) {
Log.e(TAG, "Ignoring attempt to resolve connection result without an active Activity.");
return;
}

debugLog("resolveConnectionResult: trying to resolve result: " + mConnectionResult);
if (mConnectionResult.hasResolution()) {
Expand Down

0 comments on commit e7b3758

Please sign in to comment.