Skip to content

Commit

Permalink
Merge pull request #18696 from xsellier/bugfix/purchase-check-is-conn…
Browse files Browse the repository at this point in the history
…ected

Add a check to the PurchaseTask.purchase method to prevent NullPointe…
  • Loading branch information
akien-mga authored May 8, 2018
2 parents d72c6c0 + 9efd5de commit 2f0d502
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public void destroy() {
}

public void requestPurchase(final String sku, String transactionId) {
if (!mSetupDone) return;
if (!isConnected()) return;

PurchaseTask purchaseTask = new PurchaseTask(mService, Godot.getInstance()) {
@Override
Expand Down

0 comments on commit 2f0d502

Please sign in to comment.