Add a check to the PurchaseTask.purchase method to prevent NullPointerException
This commit is contained in:
parent
356c1381b5
commit
9efd5de872
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue