java.lang.IllegalArgumentException: All roles must be handled

GitHub | oguzkocer | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Crash while converting string to role

    GitHub | 7 months ago | oguzkocer
    java.lang.IllegalArgumentException: All roles must be handled

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      All roles must be handled

      at org.wordpress.android.models.Role.fromString()
    2. org.wordpress.android
      PeopleListFragment.onResume
      1. org.wordpress.android.models.Role.fromString(Role.java:41)
      2. org.wordpress.android.datasets.PeopleTable.getPersonFromCursor(PeopleTable.java:314)
      3. org.wordpress.android.datasets.PeopleTable.getPeople(PeopleTable.java:261)
      4. org.wordpress.android.datasets.PeopleTable.getUsers(PeopleTable.java:232)
      5. org.wordpress.android.ui.people.PeopleListFragment.refreshPeopleList(PeopleListFragment.java:234)
      6. org.wordpress.android.ui.people.PeopleListFragment.updatePeople(PeopleListFragment.java:223)
      7. org.wordpress.android.ui.people.PeopleListFragment.onResume(PeopleListFragment.java:199)
      7 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Fragment.performResume(Fragment.java:2329)
      2. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1023)
      3. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1163)
      4. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1145)
      5. android.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:1980)
      6. android.app.FragmentController.dispatchResume(FragmentController.java:174)
      7. android.app.Activity.performResume(Activity.java:7013)
      8. android.app.ActivityThread.performResumeActivity(ActivityThread.java:4145)
      9. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4250)
      10. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3361)
      11. android.app.ActivityThread.access$1100(ActivityThread.java:222)
      12. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
      13. android.os.Handler.dispatchMessage(Handler.java:102)
      14. android.os.Looper.loop(Looper.java:158)
      15. android.app.ActivityThread.main(ActivityThread.java:7229)
      15 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames