Toast: Error updating: Reached code that was thought to be ...
- Device OS and version: CalyxOS 3.6.0
- Device model/manufacturer: Pixel 4a
- F-Droid version (in the About screen): 1.15.2 (upstream APK unmodified, same sig)
- F-Droid privileged extension version (if installed):
What did you do? (clear steps if possible)
- Fresh install. CalyxOS SetupWizard refreshes F-Droid index, which lead to this error.
- We've also got at least one user report of the same toast, they had a few custom repos configured.
What did you expect to see?
- Nothing.
- It does look F-Droid did refresh the index fine anyway, I see the apps listed after launching it.
What did you see instead?
- Vague toast. I love toast
🍞 but these toasts suck, I could barely read it (modern Android toast length restrictions means it was cutoff + it went away quickly)
Stacktrace
UpdateService E Error updating repository file:///product/fdroid/repo/
System.err W org.fdroid.fdroid.IndexUpdater$UpdateException: CalyxOS Local Repository: Error getting F-Droid index file
W at org.fdroid.fdroid.IndexV1Updater.update(IndexV1Updater.java:133)
W at org.fdroid.fdroid.UpdateService.onHandleWork(UpdateService.java:483)
W at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:391)
W at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:382)
W at android.os.AsyncTask$3.call(AsyncTask.java:394)
W at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W at java.lang.Thread.run(Thread.java:920)
W Caused by: com.fasterxml.jackson.databind.JsonMappingException: Attempt to invoke virtual method 'java.util.Locale androidx.core.os.LocaleListCompat.getFirstMatch(java.lang.String[])' on a null object reference
W at [Source: (org.fdroid.fdroid.ProgressBufferedInputStream); line: 434, column: 7] (through reference chain: java.lang.Object[][4]->org.fdroid.fdroid.data.App["localized"])
W at com.fasterxml.jackson.databind.deser.SettableBeanProperty._throwAsIOE(SettableBeanProperty.java:623)
W at com.fasterxml.jackson.databind.deser.SettableBeanProperty._throwAsIOE(SettableBeanProperty.java:611)
W at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:143)
W at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:371)
W at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:164)
W at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:195)
W at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:21)
W at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4497)
W at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2755)
W at org.fdroid.fdroid.IndexV1Updater.parseApps(IndexV1Updater.java:370)
W at org.fdroid.fdroid.IndexV1Updater.processIndexV1(IndexV1Updater.java:209)
W at org.fdroid.fdroid.IndexV1Updater.processDownloadedIndex(IndexV1Updater.java:147)
W at org.fdroid.fdroid.IndexV1Updater.update(IndexV1Updater.java:128)
W ... 8 more
W Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Locale androidx.core.os.LocaleListCompat.getFirstMatch(java.lang.String[])' on a null object reference
W at org.fdroid.fdroid.data.App.getLocalizedLocaleMap(App.java:640)
W at org.fdroid.fdroid.data.App.getLocalizedEntry(App.java:592)
W at org.fdroid.fdroid.data.App.setLocalized(App.java:541)
W at java.lang.reflect.Method.invoke(Native Method)
W at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:141)
W ... 18 more
Repo created from: https://gitlab.com/CalyxOS/calyxos-fdroid-repo Generated repo: https://gitlab.com/CalyxOS/platform_prebuilts_calyx_fdroid/-/tree/android12L/repo (aka the content of /product/fdroid/repo)