I wish to add an image from Parse.com to an ImageView in a fragment I have created using Picasso. I get a Target must not be null. error in logcat whenever I try to open the fragm
Solution 1:
you call updateProfilePic() during your fragment onCreate, and then onCreateView that you're assigning the value to mProfilePicture.
So all that Picasso received was:
.into(null);
just remove your updateProfilePic() from onCreate and put after mProfilePicture have the correct value.
Share
Post a Comment
for "Picasso Target Must Not Be Null Error"
Post a Comment for "Picasso Target Must Not Be Null Error"