fix(addressbook): Fix broken image in shared address book when image is null

This commit is contained in:
smizrahi
2023-07-25 20:39:49 +02:00
parent 326bc68f4c
commit 5d315ac180
2 changed files with 2 additions and 1 deletions
@@ -27,6 +27,7 @@
@class NSDictionary;
@class NSString;
@class NGVList;
@class NSNull;
@interface SOGoContactLDIFEntry : SOGoObject <SOGoContactObject>
{
+1 -1
View File
@@ -162,7 +162,7 @@
- (BOOL) hasPhoto
{
return ([ldifEntry objectForKey: @"photo"] != nil);
return ([ldifEntry objectForKey: @"photo"] != nil && [ldifEntry objectForKey: @"photo"] != [NSNull null]);
}
- (NSString *) davEntityTag