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