null处理

master_dev
grimm 2024-04-10 17:30:27 +08:00
parent 75200c0d51
commit a138ec1b4c
1 changed files with 4 additions and 0 deletions

View File

@ -319,6 +319,10 @@ public class ItemUtil {
private static void combineReward(User user, boolean fiexdOrRandom, int[] dropGroupIds, int time, ItemMap itemObj) throws ErrorCodeException {
for (int id:dropGroupIds){
SRewardGroup sRewardGroup = SRewardGroup.getsRewardItemMap().get(id);
if (sRewardGroup == null){
LOGGER.error("主线挂机掉落道具id掉落组找不到{}",id);
continue;
}
// 次数
long num = time / sRewardGroup.getDrapRate();
if (fiexdOrRandom){