title: C# Linq NULLReferenceException when searching on value inside list
body: <pre><code>[HttpGet]
  public ActionResult SearchIndex(string searchString)
  {
      IEnumerable&lt;Satellites_&gt; chan_name = from m in db.Satellites_ select m;
  
      List&lt;Satellites_&gt; satlist = chan_name.ToList&lt;Satellites_&gt;();
  
      var engname = searchString.Split(",".ToCharArray());
  
      if (!String.IsNullOrEmpty(searchString))
      {
          //the error from s.satName_En it's always have null value 
          // and i'm make sure that the list contains the value enter image description here
          var temp = chan_name.Where(s =&gt; s.satName_En.Equals(engname[0])).ToList&lt;Satellites_&gt;();
  
          return PartialView("_SearchIndex", temp);
      }
  
      return PartialView("_SearchIndex", engname);
  }
  </code></pre>