Fix section default Id null exception in save default indicator

This commit is contained in:
Konstantinos Triantafyllou 2023-07-31 10:59:03 +03:00
parent 648803a30c
commit 8446c19ea9
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ public class IndicatorController {
for (String sectionId : sections) {
Section section = sectionDAO.findById(sectionId);
if(section.getDefaultId().equals(defaultSection.getId())) {
if(section.getDefaultId() != null && section.getDefaultId().equals(defaultSection.getId())) {
Indicator indicatorNew = new Indicator();
indicatorNew.copyFromDefault(indicator, subCategory.getVisibility());
for (IndicatorPath indicatorPath : indicatorNew.getIndicatorPaths()) {