playgameservices/android-basic-samples — pull request #109 by jimmithy (2014-10-22 14:15:49+00:00)
Title: Prevent NPE when resolving network connection

If the activity reference is null when attempting to resolve the network connection, the following method will cause a NPE.

mConnectionResult.startResolutionForResult(mActivity, RC_RESOLVE);

We can safely fail the resolution attempt and give up.