title: TypeError: Cannot read property of null
body: <p>I get the error in the title even though I have tried all the solutions. About the value of null;</p>
  
  <pre><code>If my code is ;
  
  Output: TypeError: Cannot read property of null
  
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>case '!facebook':
  face.Profile(facebook, function(result) {
  
  let like = result.profiles.like;
  let comments = result.profiles.comments;
                 
  if(like === null || comments === null){
  //code.
  }
  else {
  //code.
  }
  });
  break;</code></pre>
  </div>
  </div>
  
  </code></pre>