|
@@ -217,7 +217,7 @@ public class CommunityArticleController extends BaseController {
|
|
|
boolean isWaterMark = communityArticle.isWaterMark();
|
|
|
boolean isFillWater = communityArticle.isFillWater();
|
|
|
log.info("isWaterMark:{},isFillWater:{},Images:{}", isWaterMark, isFillWater, communityArticle.getImages());
|
|
|
- if (isWaterMark && null != communityArticle.getImages()) {
|
|
|
+ if (isWaterMark && null != communityArticle.getImages() && !communityArticle.getImages().isEmpty()) {
|
|
|
for (CommunityImagesVo image : communityArticle.getImages()) {
|
|
|
if (null == image) {
|
|
|
throw new RuntimeException("图片上传失败!");
|