You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On some devices returning to fragment with image chooser could lead to NPE (either error or success).
This is because onError is called before activity is available to fragment (getActivity() is still null).
Fatal Exception: java.lang.NullPointerException
at xxx.com.SomeFragment.onError(SomeFragment.java:252)
at com.kbeanie.imagechooser.api.ImageChooserManager.onError(ImageChooserManager.java:309)
at com.kbeanie.imagechooser.threads.ImageProcessorThread.run(ImageProcessorThread.java:57)
The text was updated successfully, but these errors were encountered:
In these circumstances, you should be re-initializing the chooser managers. Can you try the sample app and see if they work for your. There's a fragment option which shows how to handle in a fragment.
On some devices returning to fragment with image chooser could lead to NPE (either error or success).
This is because onError is called before activity is available to fragment (getActivity() is still null).
Fatal Exception: java.lang.NullPointerException
at xxx.com.SomeFragment.onError(SomeFragment.java:252)
at com.kbeanie.imagechooser.api.ImageChooserManager.onError(ImageChooserManager.java:309)
at com.kbeanie.imagechooser.threads.ImageProcessorThread.run(ImageProcessorThread.java:57)
The text was updated successfully, but these errors were encountered: