Let's create a small piece of code that throws an exception:
private void button1_Click(object sender, EventArgs e)
{
string msg = null;
msg.ToCharArray();
}
If we execute this, we get the following Exception and stack trace:
System.NullReferenceException: "Object reference not...