Make sure that the source implements groups support prior than querying it for groups.

Monotone-Parent: e1d0bc18ecaf333b66126f3d3f7d8dfdb0580d70
Monotone-Revision: 8e6238fb5afca88582d8e5b9645e8f690b18ddd8

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2009-10-07T20:46:16
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2009-10-07 20:46:16 +00:00
parent 4fe953f15f
commit 9a54276a37
+5 -2
View File
@@ -128,9 +128,12 @@
for (i = 0; i < [allSources count]; i++)
{
source = [[SOGoUserManager sharedUserManager] sourceWithID: [allSources objectAtIndex: i]];
entry = [source performSelector: theSelector
withObject: theValue];
// Our different sources might not all implements groups support
if ([source respondsToSelector: theSelector])
entry = [source performSelector: theSelector
withObject: theValue];
if (entry)
break;