Why isn't subscribing to an event on a null object consistently throwing an exception?
<p>I've got an C# application that is installed on a network. One particular user using the network installation is having issues with an 'Object reference not set to an instance of an object'.</p>

<p>However, if I look at the problem, it seems like every single user should be having the issue!</p>

<p>The problem lies in two presenter classes. The first presenter sets the View on the second presenter. Within the second presenter, the View's setter attempts to subscribe the presenter to an event on the View.</p>

<p>However for a certain licensing level, that object will always be null.</p>

<p>To me, it seems like this should be failing all the time however even when running from VS2008, it only fails if I explicitly set a breakpoint on the statement where it attempts to subscribe to the null object. If I just load it without a breakpoint or with a breakpoint on a different, unrelated block of code then it works fine!</p>

<p>The faulty code is wrapped in a Try/Catch block so it shouldn't be able to just ignore the exception or swallow it somewhere else.</p>

<p>Thanks.</p>
