From 176e7d3b7f26a9a1350d6fa89b10a8fdaed3a7f1 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 26 Oct 2018 10:34:43 +0800 Subject: [PATCH] GitMonitor.vala --- GitMonitor.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GitMonitor.vala b/GitMonitor.vala index 41a1447c..ef2bdca0 100644 --- a/GitMonitor.vala +++ b/GitMonitor.vala @@ -21,12 +21,13 @@ public class GitMonitorQueue : MonitorNamePathDir { var vpath_ar = this.dir.substring(GitMonitor.gitlive.length +1).split("/", 0); - if (vpath_ar[0].length < 1) { + if (vpath_ar.length < 1 || vpath_ar[0].length < 1) { this.gitpath = ""; this.vdir = ""; this.vname = ""; - } + return; + } this.gitpath = GitMonitor.gitlive + "/" + vpath_ar[0]; -- 2.39.2