Add a check to the PurchaseTask.purchase method to prevent NullPointerException

This commit is contained in:
Xavier Sellier 2018-05-07 20:54:52 -04:00
parent 356c1381b5
commit 9efd5de872
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