mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 20:19:42 +01:00
prevent NPE when adding the very first own reaction to a message
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
55a48585a7
commit
9ec7feaaee
@ -2746,6 +2746,10 @@ class ChatController(args: Bundle) :
|
|||||||
message.reactions = LinkedHashMap()
|
message.reactions = LinkedHashMap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (message.reactionsSelf == null) {
|
||||||
|
message.reactionsSelf = ArrayList<String>()
|
||||||
|
}
|
||||||
|
|
||||||
var amount = message.reactions[emoji]
|
var amount = message.reactions[emoji]
|
||||||
if (amount == null) {
|
if (amount == null) {
|
||||||
amount = 0
|
amount = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user