Android: GPlay: java.lang.IllegalStateException - com.owncloud.android.datamodel.FileDataStorageManager.createCapabilityInstance [RC2]

Created on 14 Aug 2017  路  7Comments  路  Source: nextcloud/android

java.lang.IllegalStateException
com.owncloud.android.datamodel.FileDataStorageManager.createCapabilityInstance

  • Reports this week: 2,344
  • Android 7.1
  • Introduced with 2.0.0-rc
java.lang.IllegalStateException: 
  at android.database.CursorWindow.nativeGetString (Native Method)
  at android.database.CursorWindow.getString (CursorWindow.java:438)
  at android.database.AbstractWindowedCursor.getString (AbstractWindowedCursor.java:51)
  at android.database.CursorWrapper.getString (CursorWrapper.java:137)
  at com.owncloud.android.datamodel.FileDataStorageManager.createCapabilityInstance (FileDataStorageManager.java:2052)
  at com.owncloud.android.datamodel.FileDataStorageManager.getCapability (FileDataStorageManager.java:1991)
  at com.owncloud.android.utils.ThemeUtils.getCapability (ThemeUtils.java:330)
  at com.owncloud.android.utils.ThemeUtils.primaryColor (ThemeUtils.java:97)
  at com.owncloud.android.utils.ThemeUtils.primaryColor (ThemeUtils.java:93)
  at com.owncloud.android.ui.notifications.NotificationUtils.newNotificationBuilder (NotificationUtils.java:54)
  at com.owncloud.android.files.services.FileUploader.notifyUploadStart (FileUploader.java:1079)
  at com.owncloud.android.files.services.FileUploader.uploadFile (FileUploader.java:1002)
  at com.owncloud.android.files.services.FileUploader$ServiceHandler.handleMessage (FileUploader.java:970)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:154)
  at android.os.HandlerThread.run (HandlerThread.java:61)
bug high pr exists

All 7 comments

Stracktrace by @jasonbayton shows this as a more detailed message:

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

So, again as in #1319 the column does not exists, therefore "-1" and it crashs.

Any chance of an APK with the fix please guys?

We want to have some other fixes in it and then build a new RC(3).

Ok sure. I guess I can sit around without NC on my phone for a few more days...

Plan is tomorrow evening, but we need this time to get the pending bugs fixed.

Hopefully fixed in #1342

Should be fixed with 2.0.0RC3, please re-open if is comes up again

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markbryanduncan picture markbryanduncan  路  3Comments

ezaquarii picture ezaquarii  路  3Comments

Tie-fighter picture Tie-fighter  路  3Comments

toobie83 picture toobie83  路  3Comments

eppfel picture eppfel  路  3Comments