Timeline for What is a NullReferenceException, and how do I fix it?
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 29, 2017 at 9:06 | history | edited | Farzad Karimi | CC BY-SA 3.0 |
improved syntax
|
| May 3, 2016 at 4:01 | comment | added | Darrel Lee | Great answer for such a basic question. It's not so bad when it is your code that is failing. It's horrible when it's coming from deep inside some a commercial third party library you are relying on, and the customer support keeps insisting that it has to be your code that is causing the problem. And your not entirely sure it's not and the whole project is ground to halt.. I actually think this might make an appropriate epitaph for my tombstone: "Object reference not set to an instance of an object." | |
| Mar 7, 2016 at 18:40 | history | edited | Luis Perez | CC BY-SA 3.0 |
As per John Saunders feedback eliminated use of NullReferenceException.
|
| Mar 7, 2016 at 15:43 | comment | added | John Saunders | NullReferenceException is meant to be thrown by the CLR. It means that a reference to a null has occurred. It does not mean that a reference to a null would occur except that you cleverly checked first. | |
| Mar 6, 2016 at 20:35 | comment | added | John Saunders | Never throw NullReferenceException | |
| Mar 6, 2016 at 16:36 | history | edited | Luis Perez | CC BY-SA 3.0 |
Accented the names of the tools to make them stand out a little bit more for those who might scan for that information.
|
| S Mar 6, 2016 at 16:28 | history | answered | Luis Perez | CC BY-SA 3.0 | |
| S Mar 6, 2016 at 16:28 | history | made wiki | Post Made Community Wiki by Luis Perez |