[gnome-photos/wip/rishi/share-point-google-parametrize-provider-type: 1/2] share-point-google: Be strict about what is acceptable




commit 1affaa95fe3a3968ac47653a663c8dcf968f15d8
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Mar 20 16:17:58 2021 +0100

    share-point-google: Be strict about what is acceptable
    
    https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/187

 src/photos-share-point-google.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/photos-share-point-google.c b/src/photos-share-point-google.c
index 62b86e39..2b579639 100644
--- a/src/photos-share-point-google.c
+++ b/src/photos-share-point-google.c
@@ -457,6 +457,8 @@ photos_share_point_google_constructed (GObject *object)
 
   source = photos_share_point_online_get_source (PHOTOS_SHARE_POINT_ONLINE (self));
   goa_object = photos_source_get_goa_object (source);
+  g_assert (GOA_IS_OBJECT (goa_object));
+
   self->authorizer = gdata_goa_authorizer_new (goa_object);
   self->service = gdata_picasaweb_service_new (GDATA_AUTHORIZER (self->authorizer));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]