|
@@ -166,12 +166,12 @@ namespace FurnaceUI.Views.Maintenances
|
|
|
public void DoLoadPortCmd(string deviceName, string cmd)
|
|
|
{
|
|
|
|
|
|
- if (cmd == "SetAMHS" && deviceName == "LP1" && !LP1CarrierInfo.IsEmpty)
|
|
|
+ if (cmd == "SetAMHS" && deviceName == "LP1" && LP1CarrierInfo != null && !LP1CarrierInfo.IsEmpty)
|
|
|
{
|
|
|
DialogBox.ShowWarning($"{deviceName} change to auto failed, for FOUP present");
|
|
|
return;
|
|
|
}
|
|
|
- if (cmd == "SetAMHS" && deviceName == "LP2" && !LP2CarrierInfo.IsEmpty)
|
|
|
+ if (cmd == "SetAMHS" && deviceName == "LP2" && LP2CarrierInfo != null && !LP2CarrierInfo.IsEmpty)
|
|
|
{
|
|
|
DialogBox.ShowWarning($"{deviceName} change to auto failed, for FOUP present");
|
|
|
return;
|