[gnome-documents] documents: Ignore Google documents without a thumbnail URI



commit 223fc4e55e56b92857a39aa9f59849a7a3c40ae7
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jun 14 16:30:12 2013 +0200

    documents: Ignore Google documents without a thumbnail URI
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701957

 src/documents.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 1bbce73..96516a2 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -728,6 +728,11 @@ const GoogleDocument = new Lang.Class({
                 }
 
                 let uri = entry.get_thumbnail_uri();
+                if (!uri) {
+                    callback(false);
+                    return;
+                }
+
                 let authorizationDomain = service.get_primary_authorization_domain();
                 let inputStream = new GData.DownloadStream({ service: service,
                                                              authorization_domain: authorizationDomain,


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