Skip to content
Snippets Groups Projects
Commit 2eefa025 authored by gpawel's avatar gpawel
Browse files

LMS-2534 Avoid empty labels

SVN: 22971
parent f309f861
No related branches found
No related tags found
No related merge requests found
...@@ -127,17 +127,17 @@ public class EntityTypeLabelUtils ...@@ -127,17 +127,17 @@ public class EntityTypeLabelUtils
String label = String label =
tryWithoutPrefix(datasetTypeCode, tryWithoutPrefix(datasetTypeCode,
ScreeningConstants.HCS_ANALYSIS_DATASET_TYPE_PREFIX); ScreeningConstants.HCS_ANALYSIS_DATASET_TYPE_PREFIX);
if (label == null) if (StringUtils.isBlank(label))
{ {
label = label =
tryWithoutPrefix(datasetTypeCode, tryWithoutPrefix(datasetTypeCode,
ScreeningConstants.HCS_IMAGE_DATASET_TYPE_PREFIX); ScreeningConstants.HCS_IMAGE_DATASET_TYPE_PREFIX);
} }
if (label == null) if (StringUtils.isBlank(label))
{ {
label = tryWithoutPrefix(datasetTypeCode, ScreeningConstants.HCS_DATASET_TYPE_PREFIX); label = tryWithoutPrefix(datasetTypeCode, ScreeningConstants.HCS_DATASET_TYPE_PREFIX);
} }
if (label == null) if (StringUtils.isBlank(label))
{ {
label = datasetTypeCode; label = datasetTypeCode;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment