空指针处理
parent
7591ced69e
commit
731bcc0292
|
@ -45,6 +45,9 @@ public class PowerRiceRank extends AbstractRank implements IEventHandler {
|
|||
public void onEvent(IEvent event) throws Exception {
|
||||
//固定排名
|
||||
List<SGlobalActivity> powerRice = SGlobalActivity.getsGlobalActivityMapByType(ActivityType.POWER_RICE_ACTIVITY);
|
||||
if (powerRice == null){
|
||||
return;
|
||||
}
|
||||
int activityId = 0;
|
||||
for (SGlobalActivity activity : powerRice) {
|
||||
if (ActivityLogic.getInstance().checkGlobleActivityOpen(activity.getId())) {
|
||||
|
|
Loading…
Reference in New Issue