kjbproperty 로딩 순서 및 NPE 문제 수정

This commit is contained in:
Rinjae
2025-12-10 21:27:11 +09:00
parent 38f37adc10
commit adf1fd63fb
3 changed files with 36 additions and 28 deletions
@@ -41,12 +41,13 @@ public class MonitoringPropertyService
id.setPrptyName(prptyName);
Optional<MonitoringProperty> property = repository.findById(id);
if (property.isPresent() && !property.get().getPrpty2Val().isEmpty()) {
return property.get().getPrpty2Val();
} else {
return defaultValue;
if (property.isPresent()) {
String value = property.get().getPrpty2Val();
if (value != null && !value.isEmpty()) {
return value;
}
}
return defaultValue;
}
public Iterable<MonitoringProperty> findAllByIdPrptyName(String prptyName) {