{"action":"closed","issue":{"url":"https://api.github.com/repos/cozy/cozy-sync/issues/78","labels_url":"https://api.github.com/repos/cozy/cozy-sync/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/cozy/cozy-sync/issues/78/comments","events_url":"https://api.github.com/repos/cozy/cozy-sync/issues/78/events","html_url":"https://github.com/cozy/cozy-sync/issues/78","id":72501613,"number":78,"title":"Cozy-Sync crash when I sync my contacts","user":{"login":"obigroup","id":6352803,"avatar_url":"https://avatars.githubusercontent.com/u/6352803?v=3","gravatar_id":"","url":"https://api.github.com/users/obigroup","html_url":"https://github.com/obigroup","followers_url":"https://api.github.com/users/obigroup/followers","following_url":"https://api.github.com/users/obigroup/following{/other_user}","gists_url":"https://api.github.com/users/obigroup/gists{/gist_id}","starred_url":"https://api.github.com/users/obigroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obigroup/subscriptions","organizations_url":"https://api.github.com/users/obigroup/orgs","repos_url":"https://api.github.com/users/obigroup/repos","events_url":"https://api.github.com/users/obigroup/events{/privacy}","received_events_url":"https://api.github.com/users/obigroup/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cozy/cozy-sync/labels/2%20-%20in%20progress","name":"2 - in progress","color":"fad8c7"},{"url":"https://api.github.com/repos/cozy/cozy-sync/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-01T19:20:55Z","updated_at":"2015-12-11T17:52:37Z","closed_at":"2015-12-11T17:52:37Z","body":"Hello,\r\n\r\nWhen I try to synchronize my contacts with my phone, cozy-sync crash with this message in log file: \r\n```\r\ninfo: socket.io started\r\n^[[90mGET / ^[[36m304 ^[[90m354.934 ms - -^[[0m\r\n[Fri, 01 May 2015 18:44:37 GMT] - GET / - 304 - 355.937 ms -  -\r\n^[[90mPUT /public/addressbooks/me/all-contacts/c87fb0b2973ec5f0746c2e32de280dd8.vcf ^[[33m412 ^[[90m127.721 ms - -^[[0m\r\n^[[90mPROPFIND /public/addressbooks/me/all-contacts/ ^[[32m207 ^[[90m125.916 ms - -^[[0m\r\n\r\nTypeError: Cannot call method 'toUpperCase' of undefined\r\n    at Function.VCardParser.toVCF (/usr/local/cozy/apps/sync/node_modules/cozy-vcard/lib/index.js:576:28)\r\n    at ModelConstructor.Contact.toVCF (/usr/local/cozy/apps/sync/build/server/models/contact.js:101:39)\r\n    at /usr/local/cozy/apps/sync/build/server/backends/carddav.js:94:24\r\n    at /usr/local/cozy/apps/sync/node_modules/async/lib/async.js:227:13\r\n    at iterate (/usr/local/cozy/apps/sync/node_modules/async/lib/async.js:134:13)\r\n    at /usr/local/cozy/apps/sync/node_modules/async/lib/async.js:145:25\r\n    at /usr/local/cozy/apps/sync/node_modules/async/lib/async.js:229:17\r\n    at /usr/local/cozy/apps/sync/build/server/backends/carddav.js:95:18\r\n    at ModelConstructor.Contact.toVCF (/usr/local/cozy/apps/sync/build/server/models/contact.js:101:12)\r\n    at /usr/local/cozy/apps/sync/build/server/backends/carddav.js:94:24\r\n```\r\n\r\nEspecially when I remove a contact.\r\n\r\nThank you. "}}