diff --git a/data/musicbrainz/src/androidMain/kotlin/ly/david/musicsearch/data/musicbrainz/auth/MusicBrainzLoginActivityResultContract.kt b/data/musicbrainz/src/androidMain/kotlin/ly/david/musicsearch/data/musicbrainz/auth/MusicBrainzLoginActivityResultContract.kt index 0c7536435..c436baa11 100644 --- a/data/musicbrainz/src/androidMain/kotlin/ly/david/musicsearch/data/musicbrainz/auth/MusicBrainzLoginActivityResultContract.kt +++ b/data/musicbrainz/src/androidMain/kotlin/ly/david/musicsearch/data/musicbrainz/auth/MusicBrainzLoginActivityResultContract.kt @@ -57,7 +57,7 @@ class MusicBrainzLoginActivityResultContract( intent: Intent?, ): Result { val response = intent?.run { AuthorizationResponse.fromIntent(intent) } - val exception = AuthorizationException.fromIntent(intent) + val exception = intent?.run { AuthorizationException.fromIntent(intent) } return Result( response = response, exception = exception,