2 ms·
If your code is wrong you want to fail as soon as possible. # authenticator == null if (authenticator.getSessionError(session) == null) { # Ass
by joesb 12y ago
If your code is wrong you want to fail as soon as possible.
# authenticator == null
if (authenticator.getSessionError(session) == null) {
# Assumed session is okay, actually the bug is null authenticator
}
- mhomde 12y agohmm, yeah, that's a really good point. I guess this could sorta be resolved if you had non-nullable reference types. You get the feeling though many of these problems comes down to null's largely being a language defect in itself which should have been adressed differently