From ffa7ceb2b1e761e5ed1157058ebd9b74c5e54078 Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Mon, 17 Aug 2015 15:23:36 -0400 Subject: [PATCH] NIFI-861: - Addressing issue with blank processor names when attempting to generate ellipsis on the canvas. --- .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js index af4473e092..9f56e30576 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js @@ -289,7 +289,7 @@ nf.CanvasUtils = (function () { selection.text(text); // see if the field is too big for the field - if (node.getSubStringLength(0, text.length - 1) > width) { + if (text.length > 0 && node.getSubStringLength(0, text.length - 1) > width) { // make some room for the ellipsis width -= 5;