[gnome-documents/gnome-3-8] documents: Ignore Google documents without a thumbnail URI
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-8] documents: Ignore Google documents without a thumbnail URI
- Date: Fri, 14 Jun 2013 15:38:33 +0000 (UTC)
commit 03822c444872bf511adeb421f85ecbf80f234a11
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 30dbcba..ed5fa92 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]