Skip to content

Commit

Permalink
🐛 删除打赏帖导致通知报错
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 10, 2020
1 parent 6dfbb03 commit a3d6874
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* Notification query service.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.14.0.3, Nov 13, 2018
* @version 1.14.1.0, Sep 10, 2020
* @since 0.2.5
*/
@Service
Expand Down Expand Up @@ -449,6 +449,11 @@ public JSONObject getPointNotifications(final String userId, final int currentPa
desTemplate = langPropsService.get("notificationArticleRewardLabel");

final JSONObject reward7 = rewardRepository.get(dataId);
if (null == reward7) {
desTemplate = langPropsService.get("removedLabel");
break;
}

final String senderId7 = reward7.optString(Reward.SENDER_ID);
final JSONObject user7 = userRepository.get(senderId7);
final String articleId7 = reward7.optString(Reward.DATA_ID);
Expand Down

0 comments on commit a3d6874

Please sign in to comment.