From 31dcb2c5dd6a0546209f74dab49f5282f0a5bda4 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 8 Sep 2020 20:21:26 +0200 Subject: treewide: fix trivial null assertion warnings --- .../tincapp/activities/status/nodes/NodeInfo.kt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt') diff --git a/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt b/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt index 06725dc..6523250 100644 --- a/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt +++ b/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt @@ -1,6 +1,6 @@ /* * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon - * Copyright (C) 2017-2018 Pacien TRAN-GIRARD + * Copyright (C) 2017-2020 Pacien TRAN-GIRARD * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -80,18 +80,18 @@ data class NodeInfo(val name: String, id = matcher[2], ip = matcher[3], port = matcher[4], - cipher = matcher[5].toInt(), - digest = matcher[6].toInt(), - macLength = matcher[7].toInt(), - compression = matcher[8].toInt(), - options = matcher[9].toInt(16), - status = matcher[10].toInt(16), + cipher = matcher[5]!!.toInt(), + digest = matcher[6]!!.toInt(), + macLength = matcher[7]!!.toInt(), + compression = matcher[8]!!.toInt(), + options = matcher[9]!!.toInt(16), + status = matcher[10]!!.toInt(16), nextHop = matcher[11], via = matcher[12], - distance = matcher[13].toInt(), - pMtu = matcher[14].toInt(), - minMtu = matcher[15].toInt(), - maxMtu = matcher[16].toInt() + distance = matcher[13]!!.toInt(), + pMtu = matcher[14]!!.toInt(), + minMtu = matcher[15]!!.toInt(), + maxMtu = matcher[16]!!.toInt() ) private operator fun Matcher.get(index: Int) = group(index) -- cgit v1.2.3