title: NullReferenceException handling in in-line asp.net code
body: <p>I have some inline code in an aspx file that executes:</p>
  
  <pre><code>&lt;dd&gt;&lt;%=  encode(Listing.Address.Line1) %&gt; &lt;/dd&gt;
  </code></pre>
  
  <p>Problem is, under certain circumstances the Listing object will be null and therefore references to properties such as Address will throw an exception.  How do I handle that exception?  I basically want to ignore it: catch it, and then proceed with regular execution/rendering of page.</p>