diff --git a/Rs.SkyLine/Flow/TestCenter.cs b/Rs.SkyLine/Flow/TestCenter.cs index 628727e..53046cc 100644 --- a/Rs.SkyLine/Flow/TestCenter.cs +++ b/Rs.SkyLine/Flow/TestCenter.cs @@ -275,7 +275,7 @@ namespace Rs.MotionPlat.Flow if (info.SiloType == SchedulingSiloBase.ESiloType.Multifunction) { TraySlot ts = GlobalTray.MultiTray.GetSlot(Controls.ESlotStatus.NotHave); - if (ts.Column == 0)//无需重排 + if (ts == null || ts.Column == 0)//无需重排 { TurnoverInfos tis = new TurnoverInfos(); tis.GroupID = 0; @@ -293,7 +293,7 @@ namespace Rs.MotionPlat.Flow else if (info.SiloType == SchedulingSiloBase.ESiloType.Passed) { TraySlot ts = GlobalTray.OkTary.GetSlot(Controls.ESlotStatus.NotHave); - if (ts.Column==0)//无需重排 + if (ts==null || ts.Column==0)//无需重排 { TurnoverInfos tis = new TurnoverInfos(); tis.GroupID = 0; @@ -311,7 +311,7 @@ namespace Rs.MotionPlat.Flow else if (info.SiloType == SchedulingSiloBase.ESiloType.Failed) { TraySlot ts = GlobalTray.NgTray.GetSlot(ESlotStatus.NotHave); - if (ts.Column == 0) + if (ts == null || ts.Column == 0) { TurnoverInfos tis = new TurnoverInfos(); tis.GroupID = 0;