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




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

    share-point-google: Be strict about what is acceptable

 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]