title: Behaviour subject initial value null?
body: <pre><code>private customer: Subject&lt;Object&gt; = new BehaviorSubject&lt;Object&gt;(null);
  
  setCustomer(id, accountClassCode) {
      this.customer.next({'id': id, 'accountClassCode': accountClassCode});
  }
  
  getCustomer() {
      return this.customer.asObservable();
  }
  </code></pre>
  
  <p>I'm using this part of code but I'm getting an error that can not find id of null. Is there any solution to get initial value that is not null?</p>