加个判空操作
parent
bec145d577
commit
03672cd509
|
|
@ -156,6 +156,9 @@ public class UserLevelEventHandler implements IEventHandler,IPrivilegeChange{
|
||||||
}
|
}
|
||||||
for (UserInfo u:userInfo){
|
for (UserInfo u:userInfo){
|
||||||
User defInMem = UserManager.getUserInMem(Integer.parseInt(u.getUid()));
|
User defInMem = UserManager.getUserInMem(Integer.parseInt(u.getUid()));
|
||||||
|
if(defInMem == null){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(12 <= defInMem.getPlayerInfoManager().getLevel()){
|
if(12 <= defInMem.getPlayerInfoManager().getLevel()){
|
||||||
//发邮件
|
//发邮件
|
||||||
int [][] reward = SSpecialConfig.getTwiceArrayValue(SSpecialConfig.PRE_LOAD_REWARD);
|
int [][] reward = SSpecialConfig.getTwiceArrayValue(SSpecialConfig.PRE_LOAD_REWARD);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue