diff --git a/src/main/java/org/websoso/WSSServer/service/FeedService.java b/src/main/java/org/websoso/WSSServer/service/FeedService.java index b1f50d29c..3c3a409de 100644 --- a/src/main/java/org/websoso/WSSServer/service/FeedService.java +++ b/src/main/java/org/websoso/WSSServer/service/FeedService.java @@ -89,7 +89,7 @@ public void updateFeed(User user, Long feedId, FeedUpdateRequest request) { Feed feed = getFeedOrException(feedId); feed.validateUserAuthorization(user, UPDATE); - if (feed.isNovelChanged(request.novelId())) { + if (request.novelId() != null && feed.isNovelChanged(request.novelId())) { novelService.getNovelOrException(feed.getNovelId()); } feed.updateFeed(request.feedContent(), request.isSpoiler(), request.novelId());