Browse Source

Test

master
Chimo 1 year ago
parent
commit
75876870ad
No known key found for this signature in database
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      enabler/src/de/schildbach/pte/dto/Trip.java

+ 5
- 3
enabler/src/de/schildbach/pte/dto/Trip.java View File

@@ -222,9 +222,11 @@ public final class Trip implements Serializable {
public Set<Product> products() {
final Set<Product> products = EnumSet.noneOf(Product.class);

for (final Leg leg : legs)
if (leg instanceof Public)
products.add(((Public) leg).line.product);
if (products != null) {
for (final Leg leg : legs)
if (leg instanceof Public)
products.add(((Public) leg).line.product);
}

return products;
}

Loading…
Cancel
Save