Non-Null Assertion (ARCH8196)
هذا المحتوى غير متوفر بلغتك بعد.
Key kotlin.quality.non-null-assertion · Severity warning · Category quality
Flags the !! operator - a NullPointerException waiting for the case the type system warned about.
Incorrect
Section titled “Incorrect”val name = user!!.nameCorrect
Section titled “Correct”val name = user?.name ?: returnUse safe calls, the elvis operator, or requireNotNull with a message.