eds: Ignore empty values when creating AbstractFieldDetails instances
authorPhilip Withnall <philip@tecnocode.co.uk>
Wed, 21 Dec 2011 20:08:32 +0000 (20:08 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Wed, 21 Dec 2011 20:08:32 +0000 (20:08 +0000)
commitdd743bdc54c477a8e5653b4e00d569b151199365
treea5bcdac9f954bcc0ea792a0b053e0fc489c634ab
parent73b61e6a5465d9c511e0ef853e9dea7497bbcf10
eds: Ignore empty values when creating AbstractFieldDetails instances

We don't want to be passing around (e.g.) empty strings as e-mail addresses,
or we'll cause bugs like bgo#666540.

This modifies the EDS backend to check E.VCardAttribute.get_value() is not
null or the empty string whenever it's called, and skip the attribute as
appropriate.

Helps: bgo#666540
backends/eds/lib/edsf-persona.vala