huangxiaoyue 1 жил өмнө
parent
commit
ece09ecf54

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/Task/TaskAchieveView.cs

@@ -100,6 +100,8 @@ namespace GFGGame
             listItem.target.data = index;
 
             var taskTypeProList = TaskDataManager.Instance.GetAchievementTaskTypeProList();
+            if (taskTypeProList == null)
+                return;
             foreach (var info in taskTypeProList) {
                 if (info.AchievementType == index+1) {
                     listItem.m_achieveBar.max = info.AllTaskNum;