summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-11-25 19:37:14 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-11-25 19:37:14 +0100
commitafcbe927aca4d5ff86a326a6751a924d2d371113 (patch)
tree05747a873e8f03176c076ed048b888dc75745d8f /lib
parentd310517ca6fe7a710dfe4cd281a9891ad11e13af (diff)
fix uninitialized value warning2.3.14
Diffstat (limited to 'lib')
-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;