From 55f1897241880de35a45c1b017ec1f603d4b35f9 Mon Sep 17 00:00:00 2001 From: Vyacheslav Date: Mon, 1 Feb 2016 15:22:50 +0300 Subject: [PATCH] Fix crash Last line is '' and it will be crash --- imagemagick.js | 1 + 1 file changed, 1 insertion(+) diff --git a/imagemagick.js b/imagemagick.js index b846c0c..fbaf99e 100644 --- a/imagemagick.js +++ b/imagemagick.js @@ -110,6 +110,7 @@ function parseIdentify(input) { for (i in lines) { currentLine = lines[i]; + if(typeof currentLine != 'string') continue; indent = currentLine.search(/\S/); if (indent >= 0) { comps = currentLine.split(': ');