--- a/src/utils/router/IntermodalEdge.h
+++ b/src/utils/router/IntermodalEdge.h
@@ -232,7 +232,7 @@ public:
 
     // only used by AStar
     inline double getMinimumTravelTime(const IntermodalTrip<E, N, V>* const trip) const {
-        return myLength / trip->getMaxSpeed();
+        return trip ? myLength / trip->getMaxSpeed() : myLength;
     }
 
     /// @brief only used by mono-modal routing
