diff options
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |