Skip to content

Commit

Permalink
fix(addressbook): Fix broken image in shared address book when image …
Browse files Browse the repository at this point in the history
…is null
  • Loading branch information
WoodySlum committed Jul 25, 2023
1 parent 326bc68 commit 5d315ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions SoObjects/Contacts/SOGoContactLDIFEntry.h
Expand Up @@ -27,6 +27,7 @@
@class NSDictionary;
@class NSString;
@class NGVList;
@class NSNull;

@interface SOGoContactLDIFEntry : SOGoObject <SOGoContactObject>
{
Expand Down
2 changes: 1 addition & 1 deletion SoObjects/Contacts/SOGoContactLDIFEntry.m
Expand Up @@ -162,7 +162,7 @@ - (NSDictionary *) simplifiedLDIFRecord

- (BOOL) hasPhoto
{
return ([ldifEntry objectForKey: @"photo"] != nil);
return ([ldifEntry objectForKey: @"photo"] != nil && [ldifEntry objectForKey: @"photo"] != [NSNull null]);
}

- (NSString *) davEntityTag
Expand Down

0 comments on commit 5d315ac

Please sign in to comment.