summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm2
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;