This bug stay in Centos 6.4 and Ubuntu 12.10 ... found this bug
yesterday, fix it on my home pc, and today found that Cosimo Cecchi did
it in April but current versions of gnome-system-log are old.

Bug: When you press Ctrl+W and there is no log file selected in the
right list widget...

Patch info : https://git.gnome.org/browse/gnome-system-log/commit/src
/logview-manager.c?id=ad9153b8bcd8a2556d7a1f5fcca890680c4677de

Patch file:

>From ad9153b8bcd8a2556d7a1f5fcca890680c4677de Mon Sep 17 00:00:00 2001
From: Cosimo Cecchi <[email protected]>
Date: Thu, 11 Apr 2013 21:25:20 +0000
Subject: manager: add some safety NULL-checks

https://bugzilla.gnome.org/show_bug.cgi?id=697790
---
(limited to 'src/logview-manager.c')

diff --git a/src/logview-manager.c b/src/logview-manager.c
index 29dcba9..b948bfa 100644
--- a/src/logview-manager.c
+++ b/src/logview-manager.c
@@ -398,6 +398,10 @@ logview_manager_close_active_log (LogviewManager *manager)
   g_assert (LOGVIEW_IS_MANAGER (manager));
 
   active_log = manager->priv->active_log;
+  if (active_log == NULL) {
+    return;
+  }
+
   log_uri = logview_log_get_uri (active_log);
   file = logview_log_get_gfile (active_log);
 
--
cgit v0.9.2

** Bug watch added: GNOME Bug Tracker #697790
   https://bugzilla.gnome.org/show_bug.cgi?id=697790

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/486380

Title:
  gnome-system-log assert failure: gnome-system-log:ERROR:logview-
  log.c:910:logview_log_get_uri: assertion failed: (LOGVIEW_IS_LOG
  (log))

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-utils/+bug/486380/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to