diff --git a/Assets/ManagedResources/~Lua/Modules/Expert/Expert_UpLv.lua b/Assets/ManagedResources/~Lua/Modules/Expert/Expert_UpLv.lua index 0c58710d6e..e76377f0f2 100644 --- a/Assets/ManagedResources/~Lua/Modules/Expert/Expert_UpLv.lua +++ b/Assets/ManagedResources/~Lua/Modules/Expert/Expert_UpLv.lua @@ -59,7 +59,11 @@ function Expert_UpLv:OnSortingOrderChange(cursortingOrder) end function Expert_UpLv:OnShowData() - local globalActive = ConfigManager.GetConfigData(ConfigName.GlobalActivity,ActivityGiftManager.GetOpenExpertIdByActivityType(ActivityTypeDef.UpLvAct)) + local activityId = ActivityGiftManager.GetOpenExpertIdByActivityType(ActivityTypeDef.UpLvAct) + if activityId <= 0 then + return + end + local globalActive = ConfigManager.GetConfigData(ConfigName.GlobalActivity,activityId) activeData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.UpLvAct) PatFaceManager.RemainTimeDown(this.timeTextExpertgo,this.timeTextExpert,activeData.endTime - GetTimeStamp()) table.sort(activeData.mission, function(a,b)