From a90003905aa943b406fe6219af0be14f4df8017f Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Mon, 21 Mar 2016 09:59:17 -0500 Subject: [PATCH] Fix IllegalArgumentException in IabHelper.dispose --- src/googleplay/java/com/android/vending/billing/IabHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/googleplay/java/com/android/vending/billing/IabHelper.java b/src/googleplay/java/com/android/vending/billing/IabHelper.java index df792b18b..3c5eea685 100644 --- a/src/googleplay/java/com/android/vending/billing/IabHelper.java +++ b/src/googleplay/java/com/android/vending/billing/IabHelper.java @@ -312,7 +312,7 @@ public class IabHelper { mSetupDone = false; if (mServiceConn != null) { logDebug("Unbinding from service."); - if (mContext != null) mContext.unbindService(mServiceConn); + if (mContext != null && mService != null) mContext.unbindService(mServiceConn); } mDisposed = true; mContext = null;