diff --git a/src/main/java/run/halo/app/model/properties/PropertyEnum.java b/src/main/java/run/halo/app/model/properties/PropertyEnum.java index 33cb65bdf..5c7f6ac26 100644 --- a/src/main/java/run/halo/app/model/properties/PropertyEnum.java +++ b/src/main/java/run/halo/app/model/properties/PropertyEnum.java @@ -29,7 +29,7 @@ public interface PropertyEnum extends ValueEnum { */ @SuppressWarnings("unchecked") static T convertTo(@NonNull String value, @NonNull Class type) { - Assert.hasText(value, "Value must not be null"); + Assert.notNull(value, "Value must not be null"); Assert.notNull(type, "Type must not be null"); if (type.isAssignableFrom(String.class)) {