1
0
mirror of https://github.com/Kopano-dev/kopano-ol-extension.git synced 2023-10-10 13:37:40 +02:00

[KOE-116] Fix for cases when GAB is not available

This commit is contained in:
Patrick Simpson 2017-09-26 17:33:26 +02:00
parent 1febd7030e
commit a8fe76cf12

View File

@ -70,6 +70,9 @@ namespace Acacia.ZPush
public static ContactStringReplacer FromGAB(GABHandler gab, GABUser user)
{
if (gab?.Contacts == null || user == null)
return null;
using (ISearch<IContactItem> search = gab.Contacts.Search<IContactItem>())
{
search.AddField("urn:schemas:contacts:customerid").SetOperation(SearchOperation.Equal, user.UserName);