From d3af8483a8f7bdefc595a4f31849cf8e67940883 Mon Sep 17 00:00:00 2001 From: TJ Date: Mon, 26 Jan 2015 21:21:46 +0000 Subject: [PATCH] Don't try to iterate a null array Signed-off-by: TJ --- src/path/PathItem.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 68b8521f..6983175a 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -163,6 +163,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{ current = new Point(), start = new Point(); + if (!parts) return; + function getCoord(index, coord) { var val = +coords[index]; if (relative)