Fragment DashboardFragment not associated with a fragment manager.

Java
view?.post {
    findNavController().navigate(SplashFragmentDirections.actionSplashFragmentToLoginFragment())
}
Source

Also in Java: