java.lang.IllegalStateException: No cursor that can return names

GitHub | dirkam | 11 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.

Root Cause Analysis

  1. java.lang.IllegalStateException

    No cursor that can return names

    at net.xpece.android.support.preference.SortCursor.getColumnNames()
  2. net.xpece.android
    SortCursor.getColumnNames
    1. net.xpece.android.support.preference.SortCursor.getColumnNames(SortCursor.java:253)
    1 frame
  3. Android Platform
    AbstractCursor.getColumnIndexOrThrow
    1. android.database.AbstractCursor.getColumnIndex(AbstractCursor.java:283)
    2. android.database.AbstractCursor.getColumnIndexOrThrow(AbstractCursor.java:300)
    2 frames
  4. Android Support v4
    SimpleCursorAdapter.<init>
    1. android.support.v4.widget.CursorAdapter.init$f13d381(CursorAdapter.java:174)
    2. android.support.v4.widget.CursorAdapter.<init>(CursorAdapter.java)
    3. android.support.v4.widget.ResourceCursorAdapter.<init>(ResourceCursorAdapter.java)
    4. android.support.v4.widget.SimpleCursorAdapter.<init>(SimpleCursorAdapter.java)
    4 frames
  5. net.xpece.android
    XpRingtonePreferenceDialogFragment.onPrepareDialogBuilder
    1. net.xpece.android.support.preference.XpRingtonePreferenceDialogFragment.onPrepareDialogBuilder(XpRingtonePreferenceDialogFragment.java:195)
    1 frame
  6. android.support.v7
    PreferenceDialogFragmentCompat.onCreateDialog
    1. android.support.v7.preference.PreferenceDialogFragmentCompat.onCreateDialog(PreferenceDialogFragmentCompat.java:151)
    1 frame
  7. Android Support v4
    FragmentManagerImpl$1.run
    1. android.support.v4.app.DialogFragment.getLayoutInflater(DialogFragment.java:308)
    2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
    3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
    4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
    5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
    6. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
    6 frames
  8. Android Platform
    ActivityThread.main
    1. android.os.Handler.handleCallback(Handler.java:615)
    2. android.os.Handler.dispatchMessage(Handler.java:92)
    3. android.os.Looper.loop(Looper.java:137)
    4. android.app.ActivityThread.main(ActivityThread.java:4867)
    4 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Method.java)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
    2 frames
  11. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(NativeStart.java)
    1 frame