Skip to content

Commit

Permalink
Revert "Remove exception throw on missing collection ID"
Browse files Browse the repository at this point in the history
This reverts commit 79eba19.
  • Loading branch information
sunkup committed Jan 29, 2025
1 parent ca12ca5 commit 479991a
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()
get() = accountManager.getUserData(addressBookAccount, USER_DATA_COLLECTION_ID)?.toLongOrNull() ?: throw IllegalStateException("Address book has no collection ID")
set(id) {
accountManager.setAndVerifyUserData(addressBookAccount, USER_DATA_COLLECTION_ID, id.toString())
}
Expand Down

0 comments on commit 479991a

Please sign in to comment.