Commit d87b836f authored by Leonardo Aramaki's avatar Leonardo Aramaki

Fix crash caused by trying to deserialize a json when the key name does not exist

parent 2b30023c
......@@ -528,9 +528,9 @@ object PushManager {
init {
val json = JSONObject(sender)
_id = json.getString("_id")
_id = json.optString("_id")
username = json.getString("username")
name = json.getString("name")
name = json.optString("name")
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment