Kaynağa Gözat

fix potential crashes

Sven Czarnian 3 yıl önce
ebeveyn
işleme
be6fe84d77
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      aman/sys/aco/Node.py

+ 3 - 0
aman/sys/aco/Node.py

@@ -147,6 +147,9 @@ class Node:
         self.ArrivalCandidates = {}
         self.Inbound = inbound
 
+        if None == referenceTime or None == sequencingConfig:
+            return
+
         # predict the distance to IAF
         timePrediction = (referenceTime - inbound.ReportTime).total_seconds()
         if 0 != timePrediction and 0 != len(sequencingConfig.ActiveArrivalRunways):