title: Acces item in a content type CSOM
body: <p>I'm doing a small application which read data from my sharepoint list, my code works when my colum is not in a content type:</p>
  
  <pre><code>    List list = web.Lists.GetByTitle("myList");
      CamlQuery query = CamlQuery.CreateAllItemsQuery();
      ListItemCollection items = list.GetItems(query);
      l_objCtx.Load(items, its =&gt; its.Include(item =&gt; item[ColumnName], item =&gt; item.Id));
      l_objCtx.ExecuteQuery();
  
      foreach (var item in items)
      {
            m_strGetprimary = item.Id.ToString();
            return true;
      }
  </code></pre>
  
  <p>But if I used my code with a column which in a content type, I get the following error:</p>
  
  <p><strong>Object reference not set to an instance of an object</strong></p>
  
  <p>Any idea of how can I read these items?</p>
  
  <p>Thank you for your help</p>