mirror of https://github.com/apache/cloudstack.git
Merge branch 'main' into cks-enhancements-upstream
This commit is contained in:
commit
83a9fcdb51
|
|
@ -211,7 +211,7 @@ public class ConfigKey<T> {
|
|||
|
||||
public T value() {
|
||||
if (_value == null || isDynamic()) {
|
||||
ConfigurationVO vo = s_depot != null ? s_depot.global().findById(key()) : null;
|
||||
ConfigurationVO vo = (s_depot != null && s_depot.global() != null) ? s_depot.global().findById(key()) : null;
|
||||
final String value = (vo != null && vo.getValue() != null) ? vo.getValue() : defaultValue();
|
||||
_value = ((value == null) ? (T)defaultValue() : valueOf(value));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue