From d7d96dcf03d610562b13cc3096e0871b18242734 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 24 Feb 2019 10:28:58 +0100 Subject: Do not throw warning when encountering a train with no classes --- lib/Travel/Status/DE/IRIS/Result.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3