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 trial

Android Google Play Services Interacting with Your API Display Loading and Error States

Rosario Alessandro Cali
Rosario Alessandro Cali
5,371 Points

Does 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
Emile Conde
3,564 Points

You'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' .