title: DataTable; Object reference not set to an instance of an object
body: <p>I have the following line of code,</p>
  
  <pre><code>sitetb.Text = sitesformdataset.Tables["Sites"].Rows[_selectedindex].Field&lt;string&gt;("SiteName").ToString();
  </code></pre>
  
  <p>This returns the </p>
  
  <blockquote>
    <p><em>System.NullReferenceException; Object reference not set to an instance
    of an object.</em></p>
  </blockquote>
  
  <p>I know why it is returning this exception and thats because there is nothing in that cell.</p>
  
  <p>How do I correctly handle this?</p>