title: How to Check for a NULL Result from an Angular 5 RxJS Observable during Subscription?
body: <p>With RxJS Observables within Angular</p>
  
  <pre><code>this.myService.getEmp(personEmpId).subscribe(
          result =&gt; {
              this.personName = result.person_name;
          },
          error =&gt; {
              console.log("EE:",error);
          }
      );
  </code></pre>
  
  <p>How can I test if my subscription to this service returns a NULL result, i.e. no record was found at all?</p>
  
  <p>I tried adding the error part but this did not fire the console message.</p>
  
  <p>At the moment, I seem to be getting the following error message:</p>
  
  <pre><code>ERROR TypeError: "result is null"
  </code></pre>