Or, just in case... ``` try { if (something !=...
# random
r
Or, just in case...
Copy code
try {
    if (something != null) {
        doX()
    } else if (something == null) {
        doX()
    } else {
        doX()
    } 
} catch (e: NullpointerException) {
    doX()
}
😆 3
✔️ 2
r
Indeed, that is much better
k
This changes the behaviour though!
r
Hmm... that is a good point
e
"just doX"