From 0e79cf5e493a6c2b16071780993e528a601d127a Mon Sep 17 00:00:00 2001 From: gazer Date: Mon, 29 May 2017 21:29:08 +0300 Subject: [PATCH] fix crash of incorrect dub.json file --- src/dlangide/ui/outputpanel.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlangide/ui/outputpanel.d b/src/dlangide/ui/outputpanel.d index ed36950..b4486a5 100644 --- a/src/dlangide/ui/outputpanel.d +++ b/src/dlangide/ui/outputpanel.d @@ -162,7 +162,7 @@ class CompilerLogWidget : LogWidget { if (row < 0) row = 0; int col = 0; - if (match[3]) { + if (match[3] && match[3] != "") { col = to!int(match[3]) - 1; if (col < 0) col = 0; @@ -370,4 +370,4 @@ class OutputPanel : DockWindow { return true; } -} \ No newline at end of file +}