Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

NullPointerException when saving captured photo #4

Closed
jfpedroza opened this issue Aug 29, 2018 · 12 comments
Closed

NullPointerException when saving captured photo #4

jfpedroza opened this issue Aug 29, 2018 · 12 comments
Labels
help wanted Extra attention is needed

Comments

@jfpedroza
Copy link

jfpedroza commented Aug 29, 2018

After updating to version 1.04 and solving #1 issue, when I take a photo and press the check icon I get:

java.lang.RuntimeException: Unable to resume activity {my.package/com.jaiselrahman.filepicker.activity.FilePickerActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { }} to activity {my.package/com.jaiselrahman.filepicker.activity.FilePickerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference

To Reproduce
Steps to reproduce the behavior:

  1. Open the picker activity
  2. Select the capture photo icon
  3. Capture a photo
  4. Click the check icon
  5. The exception is thrown

Android info:

  • Device: Samsung Galaxy S4
  • API level 25
@jfpedroza
Copy link
Author

Update

The same exception happens in Samsung Galaxy J7 Prime API 24, except that it is thrown when opening the camera

@jaiselrahman
Copy link
Owner

@johnf9896 Sorry for the late reply.
I think the issue is with the samsung device. As I dont have any such device I cant test them properly.
Do you have any other idea or work around regarding this issue.

@jaiselrahman
Copy link
Owner

@johnf9896 Is this issue is fixed now ?

@jfpedroza
Copy link
Author

It's fixed for the S4 API 25, but in my J7 keeps happening after opening the camera

@jaiselrahman
Copy link
Owner

I could not reproduce the issue. Can you try to debug it.

@jaiselrahman
Copy link
Owner

Or can you test it with the following Apk file and share the log file through the menu option.

@jaiselrahman jaiselrahman added the help wanted Extra attention is needed label Oct 6, 2018
@jfpedroza
Copy link
Author

Here is the log file.
https://gist.github.com/johnf9896/ce3f2c4ff833d4a1408f39b7fe9238e2

Also consider that two apps based on your library can't be installed on a phone due to the file provider

@jaiselrahman
Copy link
Owner

Can you check with the following apk whether it is working now : Apk file.

@jfpedroza
Copy link
Author

It's working now.

@jaiselrahman
Copy link
Owner

Thank you, now the issue can be closed right.

@jfpedroza
Copy link
Author

Yes. Is there any way to fix the problem with the file provider? It doesn't allow you to install two apps that use your library

@jaiselrahman
Copy link
Owner

Can you provide more information regarding that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants