diff --git a/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift b/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift index a6aa16c..09d3ab7 100644 --- a/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift +++ b/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift @@ -119,7 +119,9 @@ open class NavigationOperation: MVMCoreOperation, UINavigationControllerDelegate toNavigationControllerViewControllers = viewControllers NavigationHandler.shared().onNavigation.send((.willNavigate, self)) guard !checkAndHandleForCancellation() else { return } - navigationController.setViewControllers(viewControllers, animated: animated) + if viewControllers.count > 0 { + navigationController.setViewControllers(viewControllers, animated: animated) + } } /** Has the navigation controller pop.