diff options
author | Niels De Graef <ndegraef@redhat.com> | 2022-09-29 11:37:47 +0200 |
---|---|---|
committer | Niels De Graef <ndegraef@redhat.com> | 2022-09-29 11:37:47 +0200 |
commit | 1ca616dd3285a843f6bd46730d62f003d01db13f (patch) | |
tree | 14dfa9384d9ca4e441e77a10dd2d83d150c4347a /src | |
parent | edf044a6ba039b43572c2443d561180f1684e17d (diff) | |
download | gnome-contacts-1ca616dd3285a843f6bd46730d62f003d01db13f.tar.gz |
editor: Don't use null properties
Since we had to add an explicit null-terminator for Vala, we have to
make sure we guard against it in our code .
Diffstat (limited to 'src')
-rw-r--r-- | src/contacts-contact-editor.vala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/contacts-contact-editor.vala b/src/contacts-contact-editor.vala index f3f20f2..80b5d35 100644 --- a/src/contacts-contact-editor.vala +++ b/src/contacts-contact-editor.vala @@ -242,6 +242,9 @@ public class Contacts.PersonaEditor : Gtk.Widget { writeable_props = persona.writeable_properties; foreach (unowned var prop in writeable_props) { + if (prop == null) // Oh Vala + continue; + if (contact.get_most_relevant_chunk (prop, true) == null) { contact.create_chunk (prop, persona); } |