Avoid NPE when sorting Labels and Criteria for user setting bandboxes
FEA: ItEr77S15FilteringEnhancements
This commit is contained in:
parent
7fe5eb2350
commit
454ff4330d
1 changed files with 6 additions and 2 deletions
|
|
@ -105,7 +105,9 @@ public class SettingsModel implements ISettingsModel {
|
|||
for (Label label : allLabels) {
|
||||
label.getType().getName();
|
||||
}
|
||||
Collections.sort(allLabels);
|
||||
if ((allLabels != null) && (!allLabels.isEmpty())) {
|
||||
Collections.sort(allLabels);
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true)
|
||||
|
|
@ -115,7 +117,9 @@ public class SettingsModel implements ISettingsModel {
|
|||
for (Criterion criterion : allCriteria) {
|
||||
criterion.getType().getName();
|
||||
}
|
||||
Collections.sort(allCriteria);
|
||||
if ((allCriteria != null) && (!allCriteria.isEmpty())) {
|
||||
Collections.sort(allCriteria);
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue