mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 06:08:52 +00:00
VRS: handle empty generated
attribute
This commit is contained in:
parent
58a51a97f5
commit
fa75f7a560
1 changed files with 2 additions and 1 deletions
|
@ -834,7 +834,8 @@ public class VrsProvider extends AbstractNetworkProvider {
|
|||
trips.add(new Trip(null /* id */, tripOrigin, tripDestination, legs, fares, null /* capacity */,
|
||||
changes));
|
||||
}
|
||||
long serverTime = parseDateTime(head.getString("generated")).getTime();
|
||||
String generatedStr = head.getString("generated");
|
||||
long serverTime = !generatedStr.isEmpty() ? parseDateTime(generatedStr).getTime() : null;
|
||||
final ResultHeader header = new ResultHeader(NetworkId.VRS, SERVER_PRODUCT, null, null, serverTime, null);
|
||||
context.from = from;
|
||||
context.to = to;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue