You'd think that after 15+ years I'd be safe from null reference exceptions...
You'd think that after 15+ years I'd be safe from null reference exceptions...
Null always comes back to bite though!
I was working in my ASP NET Core app and had written a method signature that allowed nulls to be returned. I was using a custom result type that allowed for the result value (or null) or an exception to come back.
However, the calling code that I wrote never had any handling for null to come back!
Guess what happened?
Boom.
We can never be *too* careful around null!
Watch the full video here:
https://www.youtube.com/watch?v=6so35iZNYe8
Видео You'd think that after 15+ years I'd be safe from null reference exceptions... канала Dev Leader
Null always comes back to bite though!
I was working in my ASP NET Core app and had written a method signature that allowed nulls to be returned. I was using a custom result type that allowed for the result value (or null) or an exception to come back.
However, the calling code that I wrote never had any handling for null to come back!
Guess what happened?
Boom.
We can never be *too* careful around null!
Watch the full video here:
https://www.youtube.com/watch?v=6so35iZNYe8
Видео You'd think that after 15+ years I'd be safe from null reference exceptions... канала Dev Leader
Комментарии отсутствуют
Информация о видео
16 июня 2025 г. 21:00:29
00:00:24
Другие видео канала