Skip to content

Commit

Permalink
fix false condition in getSkuDetailsAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
serggl committed Nov 18, 2021
1 parent 521a5a1 commit 556bb33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ private void getSkuDetailsAsync(final ArrayList<String> 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;
Expand Down

0 comments on commit 556bb33

Please sign in to comment.