mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 18:09:50 +00:00
Hafas: Fix crash when JSON trips query cannot scroll any more.
This commit is contained in:
parent
9410a4077a
commit
8a99a256d7
1 changed files with 1 additions and 1 deletions
|
@ -1299,7 +1299,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
trips.add(trip);
|
||||
}
|
||||
|
||||
final JsonContext context = new JsonContext(from, to, time, dep, products, res.getString("outCtxScrF"), res.getString("outCtxScrB"));
|
||||
final JsonContext context = new JsonContext(from, to, time, dep, products, res.optString("outCtxScrF"), res.optString("outCtxScrB"));
|
||||
return new QueryTripsResult(header, null, from, null, to, context, trips);
|
||||
}
|
||||
catch (final JSONException x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue