diff --git a/README.md b/README.md index 0e0eff6f..3aca54b6 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.anjlab.android.iab.v3:library:2.0.2' + implementation 'com.anjlab.android.iab.v3:library:2.0.3' } ``` diff --git a/library/build.gradle b/library/build.gradle index 4e90231f..92434f80 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -67,7 +67,7 @@ afterEvaluate { groupId = 'com.anjlab.android.iab.v3' artifactId = 'library' - version = '2.0.2' + version = '2.0.3' pom { name = 'Android In-App Billing v3 Library' diff --git a/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java b/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java index f44d902b..8b757e56 100644 --- a/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java +++ b/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java @@ -875,7 +875,7 @@ private void getSkuDetailsAsync(final ArrayList productIdList, String pu reportSkuDetailsErrorCaller("Failed to call getSkuDetails. Service may not be connected", listener); return; } - if (productIdList != null && productIdList.size() > 0) + if (productIdList == null || productIdList.isEmpty()) { reportSkuDetailsErrorCaller("Empty products list", listener); return;