title: Non-null assertion operator is not working
body: <p>Runtime error:</p>
  
  <blockquote>
    <p>TypeError: Cannot read property 'id' of undefined</p>
  </blockquote>
  
  <pre><code>if (!this.havingMultipleProjects) {//having only 1 project or not at all
    if (this.authenticationProvider.member.projects != null) 
  this.projectProvider.projectId = this.authenticationProvider.member!.projects[0]!.id;
     }
  </code></pre>
  
  <p>Can you tell me how to avoid above error? I have used <a href="https://www.typescriptlang.org/docs/handbook/release-notes/overview.html#non-null-assertion-operator" rel="nofollow noreferrer">Non-null assertion operator</a>. But still, it gives the above error. Any clue?</p>