[gedit/gnome-3-2-osx: 2/6] Fix crash in checkupdate when no updates are found



commit 0522fbbcce829f0be6c8c852be83851809e5e97c
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sat Jan 14 16:50:03 2012 +0100

    Fix crash in checkupdate when no updates are found

 plugins/checkupdate/gedit-check-update-plugin.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/checkupdate/gedit-check-update-plugin.c b/plugins/checkupdate/gedit-check-update-plugin.c
index d11f3d1..dae2126 100644
--- a/plugins/checkupdate/gedit-check-update-plugin.c
+++ b/plugins/checkupdate/gedit-check-update-plugin.c
@@ -482,6 +482,12 @@ parse_page_file (SoupSession            *session,
 		gchar *ignore_version;
 
 		file = get_file (msg->response_body->data, FILE_REGEX);
+
+		if (!file)
+		{
+            return;
+		}
+
 		file_version = parse_file_version (file);
 		ignore_version = get_ignore_version (plugin);
 



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