added null check to encryptedName
This commit is contained in:
parent
c4e19c56cf
commit
73fa2aad9e
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ class CollectionsService {
|
|||
|
||||
Collection getCollectionWithDecryptedName(Collection collection) {
|
||||
var name;
|
||||
if (collection.encryptedName != "") {
|
||||
if (collection.encryptedName != null && collection.encryptedName != "") {
|
||||
name = utf8.decode(CryptoUtil.decryptSync(
|
||||
Sodium.base642bin(collection.encryptedName),
|
||||
getCollectionKey(collection.id),
|
||||
|
|
Loading…
Add table
Reference in a new issue