3 ms·
This makes a big assumption that the null check, which is the result of a programmer error, can be recovered. What would you do once you catch the null? Log tha
by nomel 6y ago
This makes a big assumption that the null check, which is the result of a programmer error, can be recovered. What would you do once you catch the null? Log that there was a null, maybe with some debug information, then halt? I personally would prefer a proper crash handler to do all of that for me.
I guess my question is, what's wrong with crashing, in the case of a real screwup, where something has gone horrible wrong, assuming you have a proper crash handler?