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

When attempting to run sample, following error occurs. #61

Open
zobrathemanish opened this issue Jun 24, 2020 · 1 comment
Open

When attempting to run sample, following error occurs. #61

zobrathemanish opened this issue Jun 24, 2020 · 1 comment

Comments

@zobrathemanish
Copy link

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.app.Application.getFilesDir()' on a null object referenceat com...sample.f.a.b(SourceFile:35)at com...sample.CropGalleryActivity.onCreate(SourceFile:40)
This is typically this line:
cropGalleryAdapter.addImages(CropGallery.getCroppedImageUris());
Any suggestions:

@DeepakPanchariya
Copy link

DeepakPanchariya commented Sep 7, 2021

set Image uri to cropview
as
cropView.setImageUri(YourUri)

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

2 participants