Skip to content

Commit

Permalink
Remove exception throw on missing collection ID
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup committed Jan 29, 2025
1 parent 9e9ebf3 commit bb06506
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ open class LocalAddressBook @AssistedInject constructor(
get() = groupMethod == GroupMethod.GROUP_VCARDS

override var dbCollectionId: Long?
get() = accountManager.getUserData(addressBookAccount, USER_DATA_COLLECTION_ID)?.toLongOrNull() ?: throw IllegalStateException("Address book has no collection ID")
get() = accountManager.getUserData(addressBookAccount, USER_DATA_COLLECTION_ID)?.toLongOrNull()
set(id) {
accountManager.setAndVerifyUserData(addressBookAccount, USER_DATA_COLLECTION_ID, id.toString())
}
Expand Down

0 comments on commit bb06506

Please sign in to comment.