diff --git a/chestnut-common/chestnut-common-core/src/main/java/com/chestnut/common/utils/image/ImageHelper.java b/chestnut-common/chestnut-common-core/src/main/java/com/chestnut/common/utils/image/ImageHelper.java index 67faa2fd..95bf7c46 100644 --- a/chestnut-common/chestnut-common-core/src/main/java/com/chestnut/common/utils/image/ImageHelper.java +++ b/chestnut-common/chestnut-common-core/src/main/java/com/chestnut/common/utils/image/ImageHelper.java @@ -59,7 +59,7 @@ public class ImageHelper { } public static ImageHelper of(File imageFile) throws IOException { - if (Objects.isNull(imageFile) || imageFile.exists()) { + if (Objects.isNull(imageFile) || !imageFile.exists()) { throw new ImageException("Input file is null or not exists."); } ImageHelper imageHelper = new ImageHelper();