Fix IllegalArgumentException in IabHelper.dispose

pull/384/head
Alex Baker 10 years ago
parent ffa6871ede
commit a90003905a

@ -312,7 +312,7 @@ public class IabHelper {
mSetupDone = false; mSetupDone = false;
if (mServiceConn != null) { if (mServiceConn != null) {
logDebug("Unbinding from service."); logDebug("Unbinding from service.");
if (mContext != null) mContext.unbindService(mServiceConn); if (mContext != null && mService != null) mContext.unbindService(mServiceConn);
} }
mDisposed = true; mDisposed = true;
mContext = null; mContext = null;

Loading…
Cancel
Save