Fix java.lang.IllegalArgumentException: Navigation action/destination com.cesarandres.ps2link:id/action_fragmentProfileList_to_fragmentAddProfile cannot be found from the current destination Destination(com.cesarandres.ps2link:id/fragmentAddProfile) label=PROFILES class=com.cesarandres.ps2link.fragments.addprofile.FragmentComposeProfileAdd in androidx.fragment.app.Fragment.performOptionsItemSelected (Fragment.java:3154) #304
java.lang.IllegalArgumentException: Navigation action/destination com.cesarandres.ps2link:id/action_fragmentProfileList_to_fragmentAddProfile cannot be found from the current destination Destination(com.cesarandres.ps2link:id/fragmentAddProfile) label=PROFILES class=com.cesarandres.ps2link.fragments.addprofile.FragmentComposeProfileAdd
Version 5.7.2(2208)
Stacktrace
androidx.fragment.app.Fragment.performOptionsItemSelected (Fragment.java:3154);
androidx.fragment.app.FragmentManager.dispatchOptionsItemSelected (FragmentManager.java:2937);
androidx.fragment.app.Fragment.performOptionsItemSelected (Fragment.java:3158);
androidx.fragment.app.FragmentManager.dispatchOptionsItemSelected (FragmentManager.java:2937);
androidx.fragment.app.FragmentController.dispatchOptionsItemSelected (FragmentController.java:427);
androidx.fragment.app.FragmentActivity.onMenuItemSelected (FragmentActivity.java:334);
androidx.appcompat.app.AppCompatActivity.onMenuItemSelected (AppCompatActivity.java:264);
androidx.appcompat.view.WindowCallbackWrapper.onMenuItemSelected (WindowCallbackWrapper.java:109);
androidx.appcompat.app.ToolbarActionBar$2.onMenuItemClick (ToolbarActionBar.java:66);
androidx.appcompat.widget.Toolbar$1.onMenuItemClick (Toolbar.java:221);
androidx.appcompat.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected (ActionMenuView.java:781);
androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected (MenuBuilder.java:834);
androidx.appcompat.view.menu.MenuItemImpl.invoke (MenuItemImpl.java:158);
androidx.appcompat.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:985);
androidx.appcompat.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:975);
androidx.appcompat.widget.ActionMenuView.invokeItem (ActionMenuView.java:625);
androidx.appcompat.view.menu.ActionMenuItemView.onClick (ActionMenuItemView.java:151);
Reason
java.lang.IllegalArgumentException: Navigation action/destination com.cesarandres.ps2link:id/action_fragmentProfileList_to_fragmentAddProfile cannot be found from the current destination Destination(com.cesarandres.ps2link:id/fragmentAddProfile) label=PROFILES class=com.cesarandres.ps2link.fragments.addprofile.FragmentComposeProfileAdd
Link to App Center