diff --git a/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js b/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js index 939e5c15..60353bcc 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js +++ b/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js @@ -81,7 +81,8 @@ Snap.plugin(function (Snap, Element, Paper, global) { } var arr; - var d = path_elem.attr('d').trim(); + var d = path_elem.attr('d'); + d = (d || "").trim(); var arr_orig; arr = Snap.parsePathString(d); if (!toCubics) {