summaryrefslogtreecommitdiff
path: root/plugins/shotwell-publishing/PhotosPublisher.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-08-16 07:14:05 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-08-16 07:14:05 +0200
commit10ce63378912ef63c8882889f02ed4dff0416f32 (patch)
tree7cc5bafae0364fa659af2013b2a36bd1baf336af /plugins/shotwell-publishing/PhotosPublisher.vala
parentf83e6f04c2e430326656513ce02c4206aac8cc07 (diff)
parentde21437207c39bdacacc74896c0d1c820c314d22 (diff)
Merge branch 'release/debian/0.30.5-1'debian/0.30.5-1
Diffstat (limited to 'plugins/shotwell-publishing/PhotosPublisher.vala')
-rw-r--r--plugins/shotwell-publishing/PhotosPublisher.vala5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/shotwell-publishing/PhotosPublisher.vala b/plugins/shotwell-publishing/PhotosPublisher.vala
index d878158..ce5e505 100644
--- a/plugins/shotwell-publishing/PhotosPublisher.vala
+++ b/plugins/shotwell-publishing/PhotosPublisher.vala
@@ -203,9 +203,10 @@ private class AlbumDirectoryTransaction : Publishing.RESTSupport.GooglePublisher
var response_albums = object.get_member ("albums").get_array();
response_albums.foreach_element( (a, b, element) => {
var album = element.get_object();
+ var title = album.get_member("title");
var is_writable = album.get_member("isWriteable");
- if (is_writable != null && is_writable.get_boolean())
- albums += new Album(album.get_string_member("title"), album.get_string_member("id"));
+ if (title != null && is_writable != null && is_writable.get_boolean())
+ albums += new Album(title.get_string(), album.get_string_member("id"));
});
if (pagination_token_node != null) {