Fix NPE on RoutingContext#getCurrentRoute()
The currentRoute object can be null.
Previously `getCurrentRoute()` then returned a null, after it triggers an NPE.
@@ -66,6 +66,9 @@ public abstract class RoutingContextImplBase implements RoutingContext {
@Override
public Route currentRoute() {
+ if (currentRoute == null) {
+ return null;
+ }
return currentRoute.getRoute();
}
