Something went wrong while setting issue due date.
Error while disabling repository during apk download
I was investigating the following ACRA crash trying to reproduce it:
ANDROID_VERSION=4.4.4
APP_VERSION_NAME=0.100-alpha6
STACK_TRACE=java.lang.NullPointerException
at org.fdroid.fdroid.net.DownloaderService.getNotificationTitle(DownloaderService.java:188)
at org.fdroid.fdroid.net.DownloaderService.createNotification(DownloaderService.java:167)
at org.fdroid.fdroid.net.DownloaderService.handleIntent(DownloaderService.java:274)
at org.fdroid.fdroid.net.DownloaderService$ServiceHandler.handleMessage(DownloaderService.java:107)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
I believe it is due to the DownloaderService
trying to get the name of an app from the database in order to update a notification during progress updates. However, if a user disables a repo during an update, then that app is removed from the app table in the database. Next time the notification needs to be updated, it queries the database to get the name, but fails because the app doesn't exist.