diff options
author | Joseph Wang <joequant@gmail.com> | 2016-06-27 09:44:36 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-27 11:16:24 +0200 |
commit | 1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31 (patch) | |
tree | eca875a4d17c9daa763a166b374fabd54976103b /lib/network/net_applet/ifw.pm | |
parent | 2065cca409b93d16e22e1bf041b608f8fc163787 (diff) | |
download | drakx-net-1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31.tar drakx-net-1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31.tar.gz drakx-net-1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31.tar.bz2 drakx-net-1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31.tar.xz drakx-net-1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31.zip |
fix crash if notification queue is not yet setup
Fixing mga#16995
Diffstat (limited to 'lib/network/net_applet/ifw.pm')
-rw-r--r-- | lib/network/net_applet/ifw.pm | 1 |
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}, |