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


Arjun Dubashi
Arjun Dubashi
7,362 Points

Exception thrown after sending a message and logging out - Messaging app

Exception Details: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Can't use nil for keys or values on PFObject. Use NSNull for values.'

This exception gets thrown after I send a message and log out of the application. I thought that it may have been a problem with my code so I downloaded the project files and, put in my parse keys and tried, and still had the same issue. Then I deleted all users from the data browser in parse and tried again with newly created users. Still had the same issue.

Has anyone had this same problem, and if so, how did you fix it.