https://kotlinlang.org logo
b

bryan

12/15/2016, 12:17 AM
There are interface methods that I’m overriding from
BluetoothGattCallback
where AS autocompletes the method like this:
override fun onConnectionStateChange(gatt: BluetoothGatt?, status: Int, newState: Int)
but the compiler doesn’t complain if I change
BluetoothGatt?
to
BluetoothGatt
. Is it bad to make these non-nullable? Could this bite me somewhere?