mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-05-31 14:59:12 +02:00
Protection against NPEs
This commit is contained in:
parent
e2aaa8efe0
commit
67b7bd3258
@ -227,7 +227,7 @@ class Relay(
|
||||
"OK" -> listeners.forEach {
|
||||
val eventId = msgArray[1].asText()
|
||||
val success = msgArray[2].asBoolean()
|
||||
val message = msgArray[3].asText()
|
||||
val message = if (msgArray.size() > 2) msgArray[3].asText() else ""
|
||||
|
||||
if (authResponse.containsKey(eventId)) {
|
||||
val wasAlreadyAuthenticated = authResponse.get(eventId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user