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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Anthony Martinez](https://uploads.teamtreehouse.com/production/profile-photos/138762/micro_L2WH2L.png)
Anthony 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](https://uploads.teamtreehouse.com/production/profile-photos/138762/micro_L2WH2L.png)
Anthony Martinez
13,111 PointsThanks Thibaut. I added a conditional check for the validity of [PFUser currentUser]
and voila, problem solved!
![Anthony Martinez](https://uploads.teamtreehouse.com/production/profile-photos/138762/micro_L2WH2L.png)
Anthony Martinez
13,111 PointsSeems like the problem is related to the Parse SDK: http://crashes.to/s/6c6e9bd4be2
![thibaut noah](https://uploads.teamtreehouse.com/production/profile-photos/1932922/micro_2b48e85.jpg)
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.