diff --git a/src/Plugin.InAppBilling/InAppBilling.android.cs b/src/Plugin.InAppBilling/InAppBilling.android.cs index 9b096ed..956c758 100644 --- a/src/Plugin.InAppBilling/InAppBilling.android.cs +++ b/src/Plugin.InAppBilling/InAppBilling.android.cs @@ -326,6 +326,9 @@ public async override Task PurchaseAsync(string productId, { return null; } + + if(!string.IsNullOrWhiteSpace(obfuscatedProfileId) && string.IsNullOrWhiteSpace(obfuscatedAccountId)) + throw new ArgumentNullException("You must set an account id if you are setting a profile id"); switch (itemType) {