HBiSoft / PickiT

An Android library that returns real paths from Uri's

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crashes

RomanSytnyk opened this issue · comments

I got such crashes:

Caused by java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getColumnIndex(java.lang.String)' on a null object reference
       at com.hbisoft.pickit.DownloadAsyncTask.doInBackground(DownloadAsyncTask.java)
       at com.hbisoft.pickit.DownloadAsyncTask.doInBackground(DownloadAsyncTask.java)
       at android.os.AsyncTask$2.call + 295(AsyncTask.java:295)
       at java.util.concurrent.FutureTask.run + 237(FutureTask.java:237)
       at android.os.AsyncTask$SerialExecutor$1.run + 234(AsyncTask.java:234)
       at java.util.concurrent.ThreadPoolExecutor.runWorker + 1113(ThreadPoolExecutor.java:1113)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run + 588(ThreadPoolExecutor.java:588)
       at java.lang.Thread.run + 818(Thread.java:818)

And


Caused by java.lang.ArithmeticException: divide by zero
       at com.hbisoft.pickit.DownloadAsyncTask.a + 196(DownloadAsyncTask.java:196)
       at com.hbisoft.pickit.DownloadAsyncTask.doInBackground + 2(DownloadAsyncTask.java:2)
       at android.os.AsyncTask$2.call + 333(AsyncTask.java:333)
       at java.util.concurrent.FutureTask.run + 266(FutureTask.java:266)
       at android.os.AsyncTask$SerialExecutor$1.run + 245(AsyncTask.java:245)
       at java.util.concurrent.ThreadPoolExecutor.runWorker + 1167(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run + 641(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run + 764(Thread.java:764)

@RomanSytnyk Can you please provide me with the following information:

  • What file is it? (audio / video / image etc)
  • From where do you select the file?
  • Does the file contain any data (can you open it when navigating to the file)?

This should be fixed in 0.1.5.

It's a zip archive.
Other information is unknown, 'cause it's from Firebase Crashlytics (lib in the production)

Thanks, I will try your fix later

I will be closing this issue, please feel free to reopen it if you find that the issue persists.