BackendlessUser Objects randomly crash app when trying to access email address property

Looks like in your case

user. name == nil
so you should fix this line in your code:

if user.name == nil || user.name.isEmpty { ...

Greetings Vyacheslav,

Unfortunately, this won’t work too. Because user.name is unwrapped String! which is not nil <- void value, but somehow NSNull representation. So, only valid check would be:

if user.name is NSNull {...

But that doesn’t work either because Swift can’t check if unwrapped String is NSNull. Only way to properly use name field currently is like this:

if let name = user.getProperty("name") as? String where name.isEmpty {...

Which does work for me, but I think that this user.name being NSNull should be investigated.