mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
Handle a previously unhandled null case (#4533)
This commit is contained in:
parent
8121f898de
commit
6797680654
@ -197,7 +197,7 @@ public class CollectionRepository : Repository<Collection, Guid>, ICollectionRep
|
||||
|
||||
var collectionDetails = await results.ReadFirstOrDefaultAsync<CollectionAdminDetails>();
|
||||
|
||||
if (!includeAccessRelationships) return collectionDetails;
|
||||
if (!includeAccessRelationships || collectionDetails == null) return collectionDetails;
|
||||
|
||||
collectionDetails.Groups = (await results.ReadAsync<CollectionAccessSelection>()).ToList();
|
||||
collectionDetails.Users = (await results.ReadAsync<CollectionAccessSelection>()).ToList();
|
||||
|
Loading…
x
Reference in New Issue
Block a user