From 86ec90f23aaf42613f9923219a498fd02fa1bde5 Mon Sep 17 00:00:00 2001 From: juanf <juanf@ethz.ch> Date: Thu, 17 Feb 2022 10:36:47 +0100 Subject: [PATCH] SSDM-12184: Bugfix, null pointer --- .../eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js index c05ec3013bb..4b9b9d9f848 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js @@ -822,7 +822,7 @@ var FormUtil = new function() { if(hyperlink) { $component.html(this.asHyperlink(text, hyperlinkLabel)); } else { - if(text.includes('\n')) { + if(text && text.includes('\n')) { var lines = text.split('\n'); for(var lineIndex = 0; lineIndex < lines.length; lineIndex++) { if(lineIndex != 0) { -- GitLab