Make sure passed action is never null

This commit is contained in:
Jesse van den Kieboom 2012-10-30 11:04:10 +01:00
parent 1f714c8874
commit c121850399

View file

@ -110,7 +110,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
d_views.foreach((element) => {
GitgExt.View view = (GitgExt.View)element;
if (view.is_default_for(d_action))
if (view.is_default_for(d_action != null ? d_action : ""))
{
if (d_views.current == view)
{