缺少判null
parent
69a4ac5423
commit
2e3a64205b
|
@ -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()){
|
||||
|
|
Loading…
Reference in New Issue