Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException: Attempt to invoke virtual method 'void com.kbeanie.imagechooser.api.ImageChooserManager.submit(int, android.content.Intent)' on a null object reference #122

Closed
WOSHICAIXIANFENG opened this issue Oct 15, 2015 · 4 comments

Comments

@WOSHICAIXIANFENG
Copy link

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.kbeanie.imagechooser.api.ImageChooserManager.submit(int, android.content.Intent)' on a null object reference
at com.dtc.module.form.CollectionPhotoHandling.submitImageData(CollectionPhotoHandling.java:81)
at com.dtc.module.main.ListCollectionInformationFragment.onActivityResult(ListCollectionInformationFragment.java:241)
at android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:165)
at android.app.Activity.dispatchActivityResult(Activity.java:6192)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3570)

@WOSHICAIXIANFENG
Copy link
Author

CollectionPhotoHandling.java:81

// Callback when image data response, call after 'onActivityResult'
public void submitImageData(int requestCode, Intent data) {
mImageChooser.submit(requestCode, data);
}

@AlexPGA
Copy link

AlexPGA commented Mar 17, 2016

i have the same error. How do you solve it? thanks for your reply

@coomar2841
Copy link
Owner

Is mImagechooser null? If yes, you will have to reinitialize it.

@AlexPGA
Copy link

AlexPGA commented Mar 17, 2016

coomar2841 thanks for this and all replys. I solve my problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants