this post was submitted on 28 Feb 2024
1012 points (97.0% liked)

Programmer Humor

32721 readers
436 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 9 months ago* (last edited 9 months ago) (1 children)

C#: Time for a treasure hunt! Find the Null Reference Exception. Here's a map. X marks the spot.

[–] [email protected] 6 points 9 months ago (1 children)

C# tells you the call site/method name and line number right at the top. It's only really annoying when you have aggregate exceptions, which sometimes occur because someone async'd wrong

[–] [email protected] 2 points 9 months ago

Actually getting there is the other part. It's not like java where you can go down the chain if the problem isn't where it says it is.