[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 456/473: Fixed possible null pointer dereference.

noreply at xfce.org noreply at xfce.org
Tue Feb 17 00:00:26 CET 2015


This is an automated email from the git hooks/post-receive script.

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit f3a936189aa36d2dba456897a25a872eba78408b
Author: Graeme Gott <graeme at gottcode.org>
Date:   Tue Feb 10 10:59:30 2015 -0500

    Fixed possible null pointer dereference.
---
 panel-plugin/page.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel-plugin/page.cpp b/panel-plugin/page.cpp
index b80367b..6b5aeb9 100644
--- a/panel-plugin/page.cpp
+++ b/panel-plugin/page.cpp
@@ -94,7 +94,7 @@ Launcher* Page::get_selected_launcher() const
 		gtk_tree_model_get_iter(model, &iter, m_selected_path);
 		gtk_tree_model_get(model, &iter, LauncherView::COLUMN_LAUNCHER, &launcher, -1);
 	}
-	return (launcher->get_type() == Launcher::Type) ? launcher : NULL;
+	return (launcher && (launcher->get_type() == Launcher::Type)) ? launcher : NULL;
 }
 
 //-----------------------------------------------------------------------------

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list