This question already has an answer here:
I posted "What is a NullReferenceException in .NET?" as a place for canonical answers to this canonical question. In fact, most of the answers here are not from me.
Why in the world did this earn me a Gold badge? I explicitly made it CW so that I would neither gain rep nor badges.