title: C# doesn't throw NullReferenceException at developer machine
body: <p>I have a code which looks like this:</p>
  
  <pre><code>public partical class frmXXX : Form
  {
  
    SomeObject foo = null;
  
    public void XYZ()
    {
      foo.ABC.DEF(foo.XXX, foo.YYY, foo.ZZZ);
      somethingElse();
    }
  
    ...
  
  }
  </code></pre>
  
  <p>It appears that I had a bug where I called <code>XYZ()</code> when <code>foo</code> is null. The program crashed with a NullReferenceException at the customer, which is what I would expect. However, on my development machine I do not get an Exception. I also verified with the debugger that foo is actually null. The debugger says that it is null.</p>
  
  <p>Once the null object was invoked, the method will end, so <code>somethingElse();</code> is not called. It is like a silent exception. Is there a chance that my development machine is wrongly configured, or do I enable something?</p>