Permit p2pInterface to be null for whatever reasons

This commit is contained in:
Mygod
2018-04-27 17:38:14 -07:00
parent 04ddddeef0
commit 3b964e0537
2 changed files with 3 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ class RepeaterFragment : Fragment(), ServiceConnection, Toolbar.OnMenuItemClickL
}
inner class Client(p2p: WifiP2pDevice? = null, neighbour: IpNeighbour? = null) {
val iface = neighbour?.dev ?: p2pInterface!!
val iface = neighbour?.dev ?: p2pInterface
val mac = p2p?.deviceAddress ?: neighbour?.lladdr!!
val ip = TreeMap<String, IpNeighbour.State>()