Updated Branches: refs/heads/master f950428d8 -> 1fcd7e426
[wp] fix for contacts error Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/1fcd7e42 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/1fcd7e42 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/1fcd7e42 Branch: refs/heads/master Commit: 1fcd7e42677a3dc6072d1478a148cf276de49cc0 Parents: f950428 Author: Benn Mapes <[email protected]> Authored: Thu Jul 18 18:35:46 2013 -0700 Committer: Benn Mapes <[email protected]> Committed: Thu Jul 18 18:36:07 2013 -0700 ---------------------------------------------------------------------- src/wp/Contacts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/1fcd7e42/src/wp/Contacts.cs ---------------------------------------------------------------------- diff --git a/src/wp/Contacts.cs b/src/wp/Contacts.cs index af78942..b5083e8 100644 --- a/src/wp/Contacts.cs +++ b/src/wp/Contacts.cs @@ -443,7 +443,7 @@ namespace WPCordovaClassLib.Cordova.Commands List<Contact> foundContacts = null; // if we have multiple search fields - if (searchParams.options.filter.Length > 0 && searchParams.fields.Count() > 1) + if (searchParams.options.filter != null && searchParams.options.filter.Length > 0 && searchParams.fields.Count() > 1) { foundContacts = new List<Contact>(); if (searchParams.fields.Contains("emails"))
