Exception on opening Related Entities if related attribute is null #PL-6116

This commit is contained in:
Yuriy Artamonov 2015-10-07 09:39:22 +00:00
parent 7f83c7c134
commit 077906b39c

View File

@ -181,12 +181,19 @@ public class Param {
}
if (inExpr) {
String[] parts = text.split(",");
List list = new ArrayList(parts.length);
for (String part : parts) {
list.add(parseSingleValue(part));
if (StringUtils.isBlank(text)) {
value = new ArrayList<>();
} else {
String[] parts = text.split(",");
List list = new ArrayList(parts.length);
for (String part : parts) {
Object value = parseSingleValue(part);
if (value != null) {
list.add(value);
}
}
value = list;
}
value = list;
} else {
value = parseSingleValue(text);
}