diff options
-rw-r--r-- | lib/Travel/Status/DE/DeutscheBahn.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm index ae541ce..9cda933 100644 --- a/lib/Travel/Status/DE/DeutscheBahn.pm +++ b/lib/Travel/Status/DE/DeutscheBahn.pm @@ -148,7 +148,7 @@ sub results { my $train = $n_train->textContent(); my $route = $n_route->textContent(); my $dest = $n_dest->textContent(); - my $platform = $n_platform->textContent(); + my $platform = $n_platform ? $n_platform->textContent() : q{}; my $info = $n_info ? $n_info->textContent() : q{}; my @via; |