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

iOS Implementing Designs for iPhone Implementing Custom Login and Sign Up Screens Getting up to Speed

Anthony Martinez
Anthony Martinez
13,111 Points

Ribbit Crash: seems related to code in InboxViewController

Hey all,

Looking for some help on my project. I removed extra/commented code and must've removed something key to the foundation of the app, as it no longer launches properly.

I've added an exception breakpoint and it seems like there's some error that happens when the viewWillAppear gets called in the InboxTableViewController.

If anyone can spot the error and give me guidance on how to fix it, I'd be very grateful.

Built using Xcode version 6.4 (6E35b)

Link: https://drive.google.com/file/d/0B1hfu8aguZOFUXVsbGNEQmdnMW8/view?usp=sharing

3 Answers

Anthony Martinez
Anthony Martinez
13,111 Points

Thanks Thibaut. I added a conditional check for the validity of [PFUser currentUser] and voila, problem solved!

thibaut noah
thibaut noah
8,692 Points

Awesome, wasn't sure which part to check exactly, works like a charm :D thank you too.

Anthony Martinez
Anthony Martinez
13,111 Points

Seems like the problem is related to the Parse SDK: http://crashes.to/s/6c6e9bd4be2

thibaut noah
thibaut noah
8,692 Points

Hi same here, actually the crash is due to this line of code : [query whereKey:@"recipientsIds" equalTo:[[PFUser currentUser] objectId]]; it raises an exception because a part of the comparison is equal to null, and those objects are suppose to be non null, would like a help on that too if anyone knows of to fix it