diff --git a/lib/processes.js b/lib/processes.js index 10e942b..b558990 100644 --- a/lib/processes.js +++ b/lib/processes.js @@ -464,7 +464,11 @@ function processes(callback) { function checkColumn(i) { offset = offset2; - offset2 = line.substring(parsedhead[i].to + offset, 1000).indexOf(' '); + if (parsedhead[i]) { + offset2 = line.substring(parsedhead[i].to + offset, 1000).indexOf(' '); + } else { + offset2 = 10000; + } } checkColumn(0);