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 Build a Self-Destructing Message Android App Sending Messages Selecting Recipients

NullPointer and ContentView not created. FriendsFragment

Hi,

Ribbit keeps crashing after I finished this "exercise". After i have chosen a picture to send to friend ( camera-button --> Choose Picture --> Push picture) I get an NullPointer in FriendsFragment from the line "getActivity()setProgressBarIndeterminateVisibility(false);" Tried to fix this by initiating the Activity outside the FindCallback scope, which worked, but unfortunately it resulted in a new error. "IllegalStateException: Content view not yet created ", on the line "ArrayAdapter<String> adapter 0 new ArrayAdapter<String>( etc.. ". I did try to download your code to be sure that is similar, but I still get the same error. What is it that i'm missing?