Bugsense:
https://www.bugsense.com/dashboard/project/98c9e403/errors/824298064
https://www.bugsense.com/dashboard/project/98c9e403/errors/881278031
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:200)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
at java.lang.Thread.run(Thread.java:1019)Caused by: java.lang.NullPointerException: uriString
at android.net.Uri$StringUri.(Uri.java:420)
at android.net.Uri$StringUri.(Uri.java:410)
at android.net.Uri.parse(Uri.java:382)
at net.lp.collectionista.util.tasks.MusicCDItemScanAddTask.net.lp.collectionista.domain.Product doInBackground(java.lang.String[])(Collectionista:1)
at net.lp.collectionista.util.tasks.ScanAddTask.java.lang.Object doInBackground(java.lang.Object[])(Collectionista:1)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
... 4 more
also similar in BookItemScanAddTask
Added an error in multiple places when we suspect uriOfCollection String is null, to find bugs easier in the future. Not fixed yet.
Also think of other places next (sheetmusic, ...) next.