veniosg / Dir

A modern File Manager for Android
http://veniosg.github.io/Dir
Apache License 2.0
187 stars 44 forks source link

Fix crash in deleteOperation #110

Closed veniosg closed 6 years ago

veniosg commented 6 years ago
java.lang.RuntimeException: 
  at android.os.AsyncTask$3.done (AsyncTask.java:304)
  at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:355)
  at java.util.concurrent.FutureTask.setException (FutureTask.java:222)
  at java.util.concurrent.FutureTask.run (FutureTask.java:242)
  at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:231)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
  at java.lang.Thread.run (Thread.java:818)
Caused by: java.lang.IllegalArgumentException: 
  at com.veniosg.dir.mvvm.model.storage.DocumentFileUtils.findFile (DocumentFileUtils.java)
  at com.veniosg.dir.mvvm.model.storage.operation.DeleteOperation.lambda$onResult$2$DeleteOperation (DeleteOperation.java)
  or                     .onRequestingAccess (DeleteOperation.java)
  or                     .operateSaf (DeleteOperation.java)
  at com.veniosg.dir.mvvm.model.storage.operation.DeleteOperation.lambda$onResult$2$DeleteOperation (DeleteOperation.java)
  or                     .onRequestingAccess (DeleteOperation.java)
  or                     .operateSaf (DeleteOperation.java)
  at com.veniosg.dir.mvvm.model.storage.operation.FileOperationRunner.access$000 (FileOperationRunner.java)
  or                     .run (FileOperationRunner.java)
  at com.veniosg.dir.android.dialog.DeleteAsyncTask.doInBackground (DeleteAsyncTask.java)
  or                     .onPostExecute (DeleteAsyncTask.java)
  at com.veniosg.dir.android.dialog.DeleteAsyncTask.doInBackground (DeleteAsyncTask.java)
  at android.os.AsyncTask$2.call (AsyncTask.java:292)
  at java.util.concurrent.FutureTask.run (FutureTask.java:237)
  at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:231)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
  at java.lang.Thread.run (Thread.java:818)