Amab / SWADroid

Android client for e-learning platform SWAD (http://openswad.org/).
https://play.google.com/store/apps/details?id=es.ugr.swad.swadroid
GNU General Public License v3.0
21 stars 18 forks source link

java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. #114

Closed Amab closed 10 years ago

Amab commented 10 years ago
java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.
at android.database.CursorWindow.nativeGetLong(Native Method)
at android.database.CursorWindow.getLong(CursorWindow.java:507)
at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:75)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:220)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:245)
at com.android.dataframework.DataFramework.getEntityList(DataFramework.java:221)
at com.android.dataframework.DataFramework.getEntityList(DataFramework.java:195)
at es.ugr.swad.swadroid.model.DataBaseHelper.clearOldNotifications(DataBaseHelper.java:1816)
at es.ugr.swad.swadroid.modules.notifications.NotificationsSyncAdapterService.getNotifications(NotificationsSyncAdapterService.java:367)
at es.ugr.swad.swadroid.modules.notifications.NotificationsSyncAdapterService.performSync(NotificationsSyncAdapterService.java:443)
at es.ugr.swad.swadroid.modules.notifications.NotificationsSyncAdapterService.access$1(NotificationsSyncAdapterService.java:410)
at es.ugr.swad.swadroid.modules.notifications.NotificationsSyncAdapterService$SyncAdapterImpl.onPerformSync(NotificationsSyncAdapterService.java:105)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:261)
java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.
at android.database.CursorWindow.nativeGetLong(Native Method)
at android.database.CursorWindow.getLong(CursorWindow.java:507)
at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:75)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:220)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:245)
at com.android.dataframework.DataFramework.getEntityList(DataFramework.java:221)
at com.android.dataframework.DataFramework.getEntityList(DataFramework.java:195)
at es.ugr.swad.swadroid.model.DataBaseHelper.clearOldNotifications(DataBaseHelper.java:1816)
at es.ugr.swad.swadroid.modules.notifications.NotificationsSyncAdapterService.getNotifications(NotificationsSyncAdapterService.java:367)
at es.ugr.swad.swadroid.modules.notifications.NotificationsSyncAdapterService.performSync(NotificationsSyncAdapterService.java:443)
at es.ugr.swad.swadroid.modules.notifications.NotificationsSyncAdapterService.access$1(NotificationsSyncAdapterService.java:410)
at es.ugr.swad.swadroid.modules.notifications.NotificationsSyncAdapterService$SyncAdapterImpl.onPerformSync(NotificationsSyncAdapterService.java:105)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:261)
satlaibtissem commented 7 years ago

What was the solution to this problem ?!!