summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-24 10:28:58 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-24 10:28:58 +0100
commitd7d96dcf03d610562b13cc3096e0871b18242734 (patch)
treec334388b9e75afa8b43f62189645e951882b1fd2
parent212cabbbc1de56e5addd0f79d3556e87c401e4cd (diff)
Do not throw warning when encountering a train with no classes
-rw-r--r--lib/Travel/Status/DE/IRIS/Result.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm
index d5efd2c..d5ce07a 100644
--- a/lib/Travel/Status/DE/IRIS/Result.pm
+++ b/lib/Travel/Status/DE/IRIS/Result.pm
@@ -474,7 +474,7 @@ sub canceled_stops {
sub classes {
my ($self) = @_;
- my @classes = split( //, $self->{classes} );
+ my @classes = split( //, $self->{classes} // q{} );
return @classes;
}