From 2de6379ecc6dac0001c9ee1bdca600fc41ca210a Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 2 Aug 2024 14:50:22 +0200 Subject: Journey: only set route_start if it is known --- lib/Travel/Status/DE/HAFAS/Journey.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index 7933551..e02e45c 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -158,7 +158,7 @@ sub new { } $ref->{is_additional} = $journey->{stbStop}{isAdd}; } - else { + elsif ( $stops[0]{loc} ) { $ref->{route_start} = $stops[0]{loc}->name; } -- cgit v1.2.3