Commit 7e25d600 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Use null safe operator

parent 9dbb3fbf
......@@ -91,7 +91,7 @@ class QueryListener(private val context: Context) : QueryListener {
}
if (logQueriesToDb) {
waitingQueryLogs[questionMessage.id]!!.askedServer = askedServer
waitingQueryLogs[questionMessage.id]?.askedServer = askedServer
}
}
......@@ -106,8 +106,8 @@ class QueryListener(private val context: Context) : QueryListener {
if (logQueriesToDb) {
val query = synchronized(waitingQueryLogs) {
waitingQueryLogs.remove(responseMessage.id)!!
}
waitingQueryLogs.remove(responseMessage.id)
} ?: return
query.responseTime = System.currentTimeMillis()
for (answer in responseMessage.answerSection) {
query.addResponse(answer)
......
Supports Markdown
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