From 1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31 Mon Sep 17 00:00:00 2001 From: Joseph Wang Date: Mon, 27 Jun 2016 09:44:36 +0200 Subject: fix crash if notification queue is not yet setup Fixing mga#16995 --- NEWS | 3 +++ lib/network/net_applet/ifw.pm | 1 + 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index d12b079..88cc0c2 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +- net_applet: + o fix crash if notification queue is not yet initialized (mga#16995) + 2.24 - fix Drakfirewall fails to open mountd ports for NFS #mga14550 diff --git a/lib/network/net_applet/ifw.pm b/lib/network/net_applet/ifw.pm index 4ba5743..3b5c94f 100644 --- a/lib/network/net_applet/ifw.pm +++ b/lib/network/net_applet/ifw.pm @@ -86,6 +86,7 @@ sub handle_ifw_message { } my $is_attack = $message->{prefix} ne 'NEW'; enable_ifw_alert() if $is_attack; + return if !$network::net_applet::notification_queue; $network::net_applet::notification_queue->add({ title => N("Interactive Firewall"), pixbuf => $network::net_applet::pixbufs{firewall}, -- cgit v1.2.1