From ec4932ef4ad55a46900a476327a1d1d609f1b1c8 Mon Sep 17 00:00:00 2001 From: johnniang Date: Wed, 4 Sep 2019 17:32:22 +0800 Subject: [PATCH] Fix startup exception --- src/main/java/run/halo/app/model/properties/PropertyEnum.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {