Skip to content

Commit

Permalink
Fix j3k0#277 crash when closing app
Browse files Browse the repository at this point in the history
  • Loading branch information
j3k0 committed Jan 15, 2017
1 parent 1827462 commit 566ce4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/com/smartmobilesoftware/util/IabHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public void dispose() {
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;
Expand Down

0 comments on commit 566ce4b

Please sign in to comment.