fix crash of incorrect dub.json file

This commit is contained in:
gazer 2017-05-29 21:29:08 +03:00
parent 63e88aeada
commit 0e79cf5e49
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ class CompilerLogWidget : LogWidget {
if (row < 0) if (row < 0)
row = 0; row = 0;
int col = 0; int col = 0;
if (match[3]) { if (match[3] && match[3] != "") {
col = to!int(match[3]) - 1; col = to!int(match[3]) - 1;
if (col < 0) if (col < 0)
col = 0; col = 0;
@ -370,4 +370,4 @@ class OutputPanel : DockWindow {
return true; return true;
} }
} }