-
Notifications
You must be signed in to change notification settings - Fork 117
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 when starting activity #19
Comments
I'm getting the same exception. How do we properly set the loaders, and why is this mandatory all of a sudden? |
Take a look at MainActivity I am calling ImageGalleryActivity.setImageThumbnailLoader(this); and then I am implementing the ImageGalleryAdapter.ImageThumbnailLoader interface in MainActivity. Do you have all of this setup? |
After adding these lines it works again:
Should probably point these out in the readme as well? Cheers! |
in the README there is a section titled important note which calls attention to that. |
i had this same problem but just to mention that the readme jjust says
never mention about the methods to set the Thanks!! |
I have followed the description in the Readme, declaring the activity in the manifest, putting the required extras (with ArrayList og string urls) and implementing ImageGalleryAdapter.ImageThumbnailLoader and FullScreenImageGalleryAdapter.FullScreenImageLoader in my calling activity.
But I get a NPE from com.etiennelawlor.imagegallery.library.activities.ImageGalleryActivity.loadImageThumbnail(ImageGalleryActivity.java:101) where the imageThumbnailLoader is NULL.
Am I doing something wrong?
StackTrace: https://gist.github.com/olavbg/e19fdc38700d83b3d90e9e1ddf7340d6
The text was updated successfully, but these errors were encountered: