Travis Griggs
03/27/2020, 10:23 PMval family = 42
val friends = 0
println("Family:Friend ratio = ${family / friends}")
What my investigations some to indicate is that for many error exceptions (though not all), an exception inside of a ${} will cause the remainder of the calling context to be terminated and it just silently move on.
Is this a known phenomenona? A temporary bug that is meant to be fixed? I’m using an up-to-date version of AndroidStudio.Anastasia Finogenova
03/28/2020, 1:57 AMmon
03/28/2020, 3:47 AMArithmeticException
. maybe you're doing it in a background thread?Zach Klippenstein (he/him) [MOD]
03/28/2020, 4:08 AMThread.setDefaultUncaughtExceptionHandler()
somewhere that’s swallowing it?mon
03/28/2020, 4:30 AMjava.lang.ArithmeticException: divide by zero
Travis Griggs
03/28/2020, 4:57 AMAnastasia Finogenova
03/28/2020, 1:40 PMAdam Powell
03/28/2020, 2:34 PMandroidx.bluetooth
library to help with a lot of these kinds of lifecycle and threading difficultiesExecutor, Callback
pairsAnastasia Finogenova
03/28/2020, 2:36 PMAdam Powell
03/28/2020, 2:37 PMAnastasia Finogenova
03/28/2020, 2:38 PMAdam Powell
03/28/2020, 2:39 PMAnastasia Finogenova
03/28/2020, 2:48 PMTravis Griggs
03/28/2020, 8:53 PMAnastasia Finogenova
03/28/2020, 8:54 PMTravis Griggs
03/28/2020, 9:04 PM