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:
commit
2f0d502919
|
@ -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