Skip to content

Crash when starting app #87

@tuancoltech

Description

@tuancoltech

Description

Crash when starting app with below stack trace:

FATAL EXCEPTION: main
                                                                                                    Process: ai.elimu.herufi.debug, PID: 17781
                                                                                                    android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
                                                                                                    	at android.database.AbstractCursor.checkPosition(AbstractCursor.java:535)
                                                                                                    	at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:139)
                                                                                                    	at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:77)
                                                                                                    	at android.database.CursorWrapper.getLong(CursorWrapper.java:132)
                                                                                                    	at ai.elimu.content_provider.utils.converter.CursorToSoundGsonConverter.getSoundGson(CursorToSoundGsonConverter.kt:18)
                                                                                                    	at ai.elimu.content_provider.utils.converter.CursorToLetterSoundGsonConverter.getLetterSoundGson(CursorToLetterSoundGsonConverter.kt:112)
                                                                                                    	at ai.elimu.content_provider.utils.ContentProviderUtil.getAllLetterSoundGsons(ContentProviderUtil.kt:159)
                                                                                                    	at ai.elimu.herufi.ui.LetterSoundListActivity.onStart(LetterSoundListActivity.kt:41)
                                                                                                    	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1701)
                                                                                                    	at android.app.Activity.performStart(Activity.java:9045)

elimu.ai's mission is to build innovative learning software that empowers out-of-school children to teach themselves basic reading📖, writing✍🏽 and math🔢 within 6 months.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions