Skip to content
Browse files

Fixed null pointer issue.

We need to call unbindService on a Context.  In some cases, mAuthActivity
is null.  Since applicationsContext is passed in to the constructor
and never modified, it should not be null.  So we call unbindService
on applicationsContext instead.

Test Plan: Try SSO with pre-1.8 FB app.

Reviewers: vijaye, jacl, caabernathy

Reviewed By: vijaye

CC: selekman, constantin, lshepard

Differential Revision:

Revert Plan: Safe to revert

Task ID: 982981
  • Loading branch information...
1 parent 1f0b0ea commit 5a72863793521a96f5a9f4fb72960a27b98e441d @rightparen rightparen committed Mar 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 facebook/src/com/facebook/android/
2 facebook/src/com/facebook/android/
@@ -582,7 +582,7 @@ public void onServiceDisconnected(ComponentName arg) {
serviceListener.onError(new Error("Service disconnected"));
// We returned an error so there's no point in
// keeping the binding open.
- mAuthActivity.unbindService(TokenRefreshServiceConnection.this);
+ applicationsContext.unbindService(TokenRefreshServiceConnection.this);
private void refreshToken() {

0 comments on commit 5a72863

Please sign in to comment.
Something went wrong with that request. Please try again.