If I will override errorWhileCreatingScreen method in the SupportFragmentNavigator's subclass so that this method will not throw an exception, then an NPE will be thrown at the FragmentTransaction.commit method in this place because this null check was deleted.
I suggest returning the null check after creating the fragment.
If I will override errorWhileCreatingScreen method in the
SupportFragmentNavigator
's subclass so that this method will not throw an exception, then an NPE will be thrown at theFragmentTransaction.commit
method in this place because this null check was deleted.I suggest returning the null check after creating the fragment.