federicoiosue / Omni-Notes

Open source note-taking application for Android
https://omninotes.app
GNU General Public License v3.0
2.68k stars 1.11k forks source link

Missing backup folder in preferences implies NullPointerException #916

Closed federicoiosue closed 6 months ago

federicoiosue commented 1 year ago
java.lang.NullPointerException: uriString
    at android.net.Uri$StringUri.<init>(Uri.java:475)
    at android.net.Uri$StringUri.<init>(Uri.java)
    at android.net.Uri.parse(Uri.java:437)
    at it.feio.android.omninotes.async.DataBackupIntentService.exportData(DataBackupIntentService.java:100)
    at it.feio.android.omninotes.async.DataBackupIntentService.onHandleIntent(DataBackupIntentService.java:79)
    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:67)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:165)
    at android.os.HandlerThread.run(HandlerThread.java:61)
federicoiosue commented 1 year ago

This situation shouln't actually happen, its value should be checked elsewhere in the code before actually starting the backup process. Check better (reminder to myself)