Skip to content

Commit

Permalink
fix: potential NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rl3x committed May 22, 2021
1 parent ecfb362 commit 29cbdeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion billing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply from: '../_ktlint.gradle'

ext {
PUBLISH_GROUP_ID = 'de.charlex.billing'
PUBLISH_VERSION = '4.0.0'
PUBLISH_VERSION = '4.0.1'
PUBLISH_ARTIFACT_ID = 'billing-suspend'
}

Expand Down
2 changes: 1 addition & 1 deletion billing/src/main/java/de/charlex/billing/BillingHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class BillingHelper(private val activity: Activity, billingClientBuilder: Billin
}
Log.d("BillingHelper", "Billing Result: ${skuDetailsResult.skuDetailsList?.size}")

val skuDetail = skuDetailsResult.skuDetailsList?.get(0)
val skuDetail = skuDetailsResult.skuDetailsList?.getOrNull(0)
skuDetail?.let {
Log.d("BillingHelper", skuDetail.toString())

Expand Down

0 comments on commit 29cbdeb

Please sign in to comment.