I use Kotlin to Programm Android Apps. For null-pointer safety one needs to check if all references are non-null. However if only one is null then we should inform the user that something went wrong.
It is important for me to program in a concise readable manner.
I am looking for a short and easy understandable solution.
The standard way would be:
if (b != null && a != null && c !=null ...) println ("everything ok.")
else println("Something went wrong")