coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 191 forks source link

java.lang.NullPointerException at java.io.File.fixSlashes when select photo from gallery #170

Open amineghabi opened 8 years ago

ramesh586 commented 8 years ago

Can we have a error log. It might help us to solve your problem

donnadanley247 commented 7 years ago

Here's my error reported by some users,

java.lang.RuntimeException: 
  at android.os.AsyncTask$3.done(AsyncTask.java:309)
  at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
  at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
  at java.util.concurrent.FutureTask.run(FutureTask.java:242)
  at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
  at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NullPointerException: 
  at java.io.File.fixSlashes(File.java:183)
  at java.io.File.<init>(File.java:130)
  at com.bumptech.glide.DrawableTypeRequest.buildProvider(DrawableTypeRequest.java:0)
  at com.bumptech.glide.DrawableTypeRequest.doInBackground(DrawableTypeRequest.java:0)
  at android.os.AsyncTask$2.call(AsyncTask.java:295)
  at java.util.concurrent.FutureTask.run(FutureTask.java:237)
donnadanley247 commented 7 years ago

I don't know even where is the error coming. Because i am receiving this stack trace from play store crashes and firebase crashes with just provided details. App in my testing devices working fine so i can not decide where the problem is.

On Mon, Jun 5, 2017 at 1:18 AM, ramesh586 notifications@github.com wrote:

@donnadanley247 https://github.com/donnadanley247 Can you provide the code snippet how you are creating file .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/coomar2841/image-chooser-library/issues/170#issuecomment-306130559, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab1o7YhTtbkVvA4p8vTFb-wK9r6ANjsYks5sA7nIgaJpZM4IlZTV .

coomar2841 commented 7 years ago

Can you tell which device and OS?