Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRosario Alessandro Cali
5,371 PointsDoes anyone else get a null pointer exception on the Shop?
Hey everyone! For some reason on my onBindViewHolder method inside the ListingAdapeter my Shop object is null. Does anybody know how to solve this? Tell me what code do you want me to post if needed.
1 Answer
Emile Conde
3,564 PointsYou've obviously solved this problem by now so this is for those who might encounter this problem in the future. My problem was here:
public static void getActiveListings(Callback<ActiveListings> callback){ getApi().activeListings("Images,Shop", callback); }
Make sure that there is no empty space between 'Images' , the comma and 'Shop' .
Jun Kakeno
iOS Development with Swift Techdegree Graduate 24,842 PointsJun Kakeno
iOS Development with Swift Techdegree Graduate 24,842 PointsI had the same issue. I follow the advise in this link
https://teamtreehouse.com/community/i-receive-a-failure-call
and fixed the issue.