forked from github/szkolny
[Feedback] Fix crashing when null message is received.
This commit is contained in:
parent
57a8d72f1c
commit
4717b4549e
@ -47,7 +47,7 @@ class SzkolnyAppFirebase(val app: App, val profiles: List<Profile>, val message:
|
||||
)
|
||||
"appUpdate" -> launch { UpdateWorker.runNow(app, app.gson.fromJson(message.data.getString("update"), Update::class.java)) }
|
||||
"feedbackMessage" -> launch {
|
||||
val message = app.gson.fromJson(message.data.getString("message"), FeedbackMessage::class.java)
|
||||
val message = app.gson.fromJson(message.data.getString("message"), FeedbackMessage::class.java) ?: return@launch
|
||||
feedbackMessage(message)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user