Skip to content

Commit

Permalink
Add a missing null check in GamesService
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak authored and mar-v-in committed Oct 2, 2023
1 parent ccb26ad commit 0b1e517
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class GamesService : BaseService(TAG, GmsService.GAMES) {

lifecycleScope.launchWhenStarted {
try {
val account = request.account.takeIf { it.name != AuthConstants.DEFAULT_ACCOUNT }
val account = request.account?.takeIf { it.name != AuthConstants.DEFAULT_ACCOUNT }
?: GamesConfigurationService.getDefaultAccount(this@GamesService, packageName)
?: return@launchWhenStarted sendSignInRequired()

Expand Down

0 comments on commit 0b1e517

Please sign in to comment.