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 trialAnthony Martinez
13,111 PointsRibbit 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
13,111 PointsThanks Thibaut. I added a conditional check for the validity of [PFUser currentUser]
and voila, problem solved!
Anthony Martinez
13,111 PointsSeems like the problem is related to the Parse SDK: http://crashes.to/s/6c6e9bd4be2
thibaut noah
8,692 PointsHi 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
thibaut noah
8,692 Pointsthibaut noah
8,692 PointsAwesome, wasn't sure which part to check exactly, works like a charm :D thank you too.