Getting this error:
'NSInternalInconsistencyException', reason: 'Key "username" has no data. Call fetchIfNeeded before getting its value.'
I have a joint class which contains PFUser
as pointer. When I get a user from the joint class it just have pointer as expected but this condition fails and leads to error above:
if (user.username != nil) {
username = user.username ?? "no username"
}
/** THE ACCESSING property
The username for the `PFUser`.
*/
@property (nullable, nonatomic, strong) NSString *username;
This can happen due to two reasons: