diff --git a/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java b/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java index 32d76ee0..33849043 100644 --- a/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java +++ b/enabler/src/de/schildbach/pte/AbstractNavitiaProvider.java @@ -966,8 +966,11 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider { } } + String prevQueryUrlString = prevQueryUrl != null ? prevQueryUrl.toString() : null; + String nextQueryUrlString = nextQueryUrl != null ? nextQueryUrl.toString() : null; + final QueryTripsResult result = new QueryTripsResult(resultHeader, url.build().toString(), from, - null, to, new Context(from, to, prevQueryUrl.toString(), nextQueryUrl.toString()), + null, to, new Context(from, to, prevQueryUrlString, nextQueryUrlString), new LinkedList()); parseQueryTripsResult(head, from, to, result);