bamlab/react-native-image-resizer

App crashing on Android device while taking picture

Joshig99 opened this issue · 5 comments

Caused by java.lang.NullPointerException: uriString
at android.net.Uri$StringUri.(Uri.java:507)
at android.net.Uri$StringUri.(Uri.java:497)
at android.net.Uri.parse(Uri.java:469)
at fr.bamlab.rnimageresizer.ImageResizerModule.createResizedImageWithExceptions(ImageResizerModule.java:79)
at fr.bamlab.rnimageresizer.ImageResizerModule.access$000(ImageResizerModule.java:27)
at fr.bamlab.rnimageresizer.ImageResizerModule$1.doInBackgroundGuarded(ImageResizerModule.java:63)
at fr.bamlab.rnimageresizer.ImageResizerModule$1.doInBackgroundGuarded(ImageResizerModule.java:59)
at com.facebook.react.bridge.GuardedAsyncTask.doInBackground(GuardedAsyncTask.java:36)
at com.facebook.react.bridge.GuardedAsyncTask.doInBackground(GuardedAsyncTask.java:20)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)

Android : 12
react-native-image-resizer :1.4.5
react-native: 0.64.0

image

"react": "17.0.2",
"react-native": "0.67.2"

I had same issue. Any solution to fix it?

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale commented

This issue has been automatically closed. Thank you for your contributions.

I am facing the same issue

@chaudhary are you have any solution ?