mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-31 03:48:10 +00:00
Make sure passed action is never null
This commit is contained in:
parent
1f714c8874
commit
c121850399
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue