Commit fe6340ab authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Handle undefined user data in conncetion suggestion with no previous journey

Closes #30
parent f2f58ab5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2397,9 +2397,11 @@ sub startup {
					$eva              = $status->{arr_eva};
					$exclude_via      = $status->{dep_name};
					$exclude_train_id = $status->{train_id};
					if ( $status->{real_arrival} ) {
						$exclude_before = $status->{real_arrival}->epoch;
					}
				}
			}

			if ( not $eva ) {
				return;
@@ -2431,6 +2433,7 @@ sub startup {
					next;
				}
				if (    $exclude_before
					and $train->departure
					and $train->departure->epoch < $exclude_before )
				{
					next;