summaryrefslogtreecommitdiffstats
path: root/lib/network/net_applet
diff options
context:
space:
mode:
authorJoseph Wang <joequant@gmail.com>2016-06-27 09:44:36 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-27 10:14:14 +0200
commitfda05ec07e034dd4d092b510a00f4dd19243b041 (patch)
treeb643a5224c675bc9660490a0d66cf2780191f3e6 /lib/network/net_applet
parent92916d9379832cbb5790c9799a26180812a201da (diff)
downloaddrakx-net-fda05ec07e034dd4d092b510a00f4dd19243b041.tar
drakx-net-fda05ec07e034dd4d092b510a00f4dd19243b041.tar.gz
drakx-net-fda05ec07e034dd4d092b510a00f4dd19243b041.tar.bz2
drakx-net-fda05ec07e034dd4d092b510a00f4dd19243b041.tar.xz
drakx-net-fda05ec07e034dd4d092b510a00f4dd19243b041.zip
fix crash if notification queue is not yet setup
Fixing mga#16995
Diffstat (limited to 'lib/network/net_applet')
-rw-r--r--lib/network/net_applet/ifw.pm1
1 files changed, 1 insertions, 0 deletions
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},