diff --git a/application/src/main/java/run/halo/app/plugin/DefaultReactiveSettingFetcher.java b/application/src/main/java/run/halo/app/plugin/DefaultReactiveSettingFetcher.java index d8cf2ccd49..397e3ff9cf 100644 --- a/application/src/main/java/run/halo/app/plugin/DefaultReactiveSettingFetcher.java +++ b/application/src/main/java/run/halo/app/plugin/DefaultReactiveSettingFetcher.java @@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.node.JsonNodeFactory; import java.util.LinkedHashMap; import java.util.Map; +import java.util.Objects; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.BeansException; import org.springframework.beans.factory.DisposableBean; @@ -186,7 +187,7 @@ private Map getCachedConfigData(@NonNull Cache cache) { @Override public Controller setupWith(ControllerBuilder builder) { ExtensionMatcher matcher = - extension -> configMapName.equals(extension.getMetadata().getName()); + extension -> Objects.equals(extension.getMetadata().getName(), configMapName); return builder .extension(new ConfigMap()) .syncAllOnStart(true)