Merge pull request #18696 from xsellier/bugfix/purchase-check-is-connected

Add a check to the PurchaseTask.purchase method to prevent NullPointe…
This commit is contained in:
Rémi Verschelde 2018-05-08 11:17:12 +02:00 committed by GitHub
commit 2f0d502919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ public class PaymentsManager {
}
public void requestPurchase(final String sku, String transactionId) {
if (!mSetupDone) return;
if (!isConnected()) return;
PurchaseTask purchaseTask = new PurchaseTask(mService, Godot.getInstance()) {
@Override