You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Add a check to the PurchaseTask.purchase method to prevent NullPointerException
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user