Ok, got it. Is there a shorter way to force a null...
# announcements
p
Ok, got it. Is there a shorter way to force a nullable type?
Copy code
val handler: Thread.UncaughtExceptionHandler? = Thread.getDefaultUncaughtExceptionHandler()
// shorter
val handler = Thread.getDefaultUncaughtExceptionHandler() ?: null