Unverified Commit 91927f50 authored by Leonardo Aramaki's avatar Leonardo Aramaki Committed by GitHub

Merge pull request #562 from RocketChat/fix/push-crash

Fix crash deserializing message json
parents 2b30023c 2e596dbe
...@@ -20,8 +20,8 @@ android { ...@@ -20,8 +20,8 @@ android {
applicationId "chat.rocket.android" applicationId "chat.rocket.android"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 47 versionCode 48
versionName "1.0.24" versionName "1.0.25"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
multiDexEnabled true multiDexEnabled true
......
...@@ -528,9 +528,9 @@ object PushManager { ...@@ -528,9 +528,9 @@ object PushManager {
init { init {
val json = JSONObject(sender) val json = JSONObject(sender)
_id = json.getString("_id") _id = json.optString("_id")
username = json.getString("username") 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