PDA

View Full Version : null



Randy5
2011-04-22, 07:01 AM
In Visual Basic, what does a NullReferenceException refer to?

suwunk
2011-04-24, 12:08 PM
A NullReferenceException occurs when you try to reference an object in your code that does not exist. For example, you may have tried to use an object without using the New keyword first, or tried to use an object whose value is set to null (Nothing in Visual Basic).
Troubleshooting Exceptions: System.NullReferenceException (http://msdn.microsoft.com/en-us/library/sxw2ez55.aspx)