C#C
C#13mo ago
39 replies
Faker

How to read stack trace errors

Hello guys, consider the following error:

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at DataStructure.LinkedLists`1.AddNode(T data) in C:\Users\...\RiderProjects\DataStructure\DataStructure\LinkedLists.cs:line 17
   at Program.<Main>$(String[] args) in C:\Users\...\RiderProjects\DataStructure\DataStructure\Program.cs:line 109

Can someone explain how should I proceed to "decrypt" the stack trace error please. Should I read from top to bottom or bottom to top? How to interpret each line and which lines are the most important ones where it actually tells us the parent line which causes the error please
Was this page helpful?