title: Sharepoint list item throws null error
body: <p>I have am iterating through a list of SharePoint list items .
  A couple of items do not have data so throw the null  exception.</p>
  
  <p>I used </p>
  
  <pre><code> if (!string.IsNullOrEmpty(xt["ows_LinkTitle"].ToString()))
      {
         Entity.DefectType = xt["ows_LinkTitle"].ToString();    
      }
  </code></pre>
  
  <p>but an error still occurs.</p>
  
  <p>I also tried </p>
  
  <pre><code>if(xt["ows_LinkTitle"].ToString()!= null)
     {
         Entity.DefectType = xt["ows_LinkTitle"].ToString();
     }
  </code></pre>
  
  <p>I could put a try catch block around it but I don't want to do it for each and every line.</p>
  
  <p>Is there any way to check the sharepoint item value without throwing an  error.  </p>