title: Object reference not set to an instance of an object
body: <p>Getting this error on this code:</p>
  
  <pre><code>string pname = null;
  pname = ag.FirstOrDefault().arrangement.parent.name;
  </code></pre>
  
  <p>when calling the line pname = ag.FirstOrDefault.....</p>
  
  <p>The filed parent.name is empty(null), which is fine I want to get an empty(null) string in such case.
  How can I get rid of the error?</p>