I am having issue with the new Android Navigation Architecture component when I try to navigate from one Fragment to another, I get this weird error:
I have resolved the same problem by putting check before navigate instead of boilerplate code for clicking instantly control
if (findNavController().currentDestination?.id == R.id.currentFragment) {
findNavController().navigate(R.id.action_current_next)}
/* Here R.id.currentFragment is the id of current fragment in navigation graph */
according to this answer
https://stackoverflow.com/a/56168225/7055259