缺少判null

back_recharge
zhangshanxue 2020-06-01 15:19:32 +08:00
parent 69a4ac5423
commit 2e3a64205b
1 changed files with 4 additions and 0 deletions

View File

@ -384,6 +384,10 @@ public class DeathPathLogic {
User user = UserManager.getUser(session.getUid());
DeathChallengeCount countInfo = RedisUtil.getInstence().get(RedisKey.DEATH_PAHT_TOTAL_CHALLENGE_COUNT, String.valueOf(user.getPlayerInfoManager().getGuildId()), DeathChallengeCount.class);
Family.GetAllDeathPathRewardInfoResponse.Builder response = Family.GetAllDeathPathRewardInfoResponse.newBuilder();
if(countInfo==null){
MessageUtil.sendMessage(session,1,messageType.getNumber(),response.build(),true);
return;
}
Map<Integer, DeathReward> userReward = countInfo.getUserReward();
if(userReward!=null){
for(Map.Entry<Integer, DeathReward> entry:userReward.entrySet()){