From afcbe927aca4d5ff86a326a6751a924d2d371113 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 25 Nov 2019 19:37:14 +0100 Subject: fix uninitialized value warning --- lib/DBInfoscreen/Controller/Stationboard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 803185f..668fb71 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -1024,7 +1024,7 @@ sub handle_request { } } } - if ( @{ $route_info->{messages} } ) { + if ( $route_info and @{ $route_info->{messages} } ) { my $him = $route_info->{messages}; my @him_messages; $departures[-1]{messages}{him} = $him; -- cgit v1.2.3