title: Get Object reference not set to an instance of an object. Error from Linq
body: <p>I get Object reference not set to an instance of an object. error </p>
  
  <p>here is my code:</p>
  
  <pre><code>    public ActionResult Profile(string id)
      {
  
              News_Application.NewsDatabaseEntities db = new News_Application.NewsDatabaseEntities();
              var result = (from u in db.AspNetUsers
                            where u.Id == id
                            select new { u.Id, u.WriterName, u.ProfilePicture }).FirstOrDefault();
  
              UserViewModel mo = new UserViewModel();
  
                mo.id = result.Id;
                mo.WriterName = result.WriterName;
                mo.WriterImage = result.ProfilePicture;
  
  
                return View(mo);
      }
  </code></pre>
  
  <p>Please help me. Thank you so much</p>