<p dir="auto"><strong>I'm submitting a ...</strong>  (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x] bug report
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ x] bug report
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto">I am upgrading from beta.17<br>
When using http.get I can give options to access auth-restricted area of my website.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let headers = new Headers({
    'Content-Type': 'application/json',
    'Authorization': 'Basic *password*='
  });
let options = new RequestOptions({ headers: headers });
return this.http
    .get(this.callback, options)
    .map(this.extractData);"><pre class="notranslate"><code class="notranslate">let headers = new Headers({
    'Content-Type': 'application/json',
    'Authorization': 'Basic *password*='
  });
let options = new RequestOptions({ headers: headers });
return this.http
    .get(this.callback, options)
    .map(this.extractData);
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<blockquote>
<p dir="auto">Uncaught EXCEPTION: Error in backoffice/funeral-events/event-death.component.html:30:9<br>
ORIGINAL EXCEPTION: TypeError: Cannot read property 'toString' of null<br>
ORIGINAL STACKTRACE:<br>
TypeError: Cannot read property 'toString' of null<br>
at Request.Body.text (<a href="http://admin.localhost:4000/@angular/http/http.umd.js:1138:30" rel="nofollow">http://admin.localhost:4000/@angular/http/http.umd.js:1138:30</a>)<br>
at Request.getBody (<a href="http://admin.localhost:4000/@angular/http/http.umd.js:1720:33" rel="nofollow">http://admin.localhost:4000/@angular/http/http.umd.js:1720:33</a>)<br>
at Observable.eval <a href="http://admin.localhost:4000/@angular/http/http.umd.js:1419:41" rel="nofollow">as _subscribe</a><br>
at Observable.subscribe (<a href="http://admin.localhost:4000/rxjs/Observable.js:52:62" rel="nofollow">http://admin.localhost:4000/rxjs/Observable.js:52:62</a>)<br>
at Observable._subscribe (<a href="http://admin.localhost:4000/rxjs/Observable.js:109:28" rel="nofollow">http://admin.localhost:4000/rxjs/Observable.js:109:28</a>)<br>
at MapOperator.call (<a href="http://admin.localhost:4000/rxjs/operator/map.js:54:23" rel="nofollow">http://admin.localhost:4000/rxjs/operator/map.js:54:23</a>)<br>
at Observable.subscribe (<a href="http://admin.localhost:4000/rxjs/Observable.js:52:38" rel="nofollow">http://admin.localhost:4000/rxjs/Observable.js:52:38</a>)<br>
at HospitalsComponent.getHospitals (<a href="http://admin.localhost:4000/js/advitam-bo.js:1592:26" rel="nofollow">http://admin.localhost:4000/js/advitam-bo.js:1592:26</a>)<br>
at HospitalsComponent.ngOnInit (<a href="http://admin.localhost:4000/js/advitam-bo.js:1584:26" rel="nofollow">http://admin.localhost:4000/js/advitam-bo.js:1584:26</a>)<br>
at DebugAppView._View_EventDeathComponent1.detectChangesInternal (EventDeathComponent.ngfactory.js:535:87)<br>
ERROR CONTEXT:<br>
[object Object]</p>
</blockquote>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto">I should get an observable I can call subscribe on, and no exception like this one. I had a really hard time to understand why this code failed when upgrading.</p>
<p dir="auto">What is strange is that when I remove</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 'Content-Type': 'application/json',"><pre class="notranslate"><code class="notranslate"> 'Content-Type': 'application/json',
</code></pre></div>
<p dir="auto">the call is made and I can extract my data.<br>
So for now I just remove the <code class="notranslate">application/json</code> part. But I think it's a bug so I report it</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.5</li>
<li><strong>Browser:</strong> [all | Chrome ]</li>
<li><strong>Language:</strong> [ TypeScript last]</li>
</ul>
<p dir="auto"><strong>I'm submitting a ...</strong>  (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  &lt;a routerLink=&quot;/team&quot; routerLinkActive #rla=&quot;routerLinkActive&quot;&gt;&lt;/a&gt;
  &lt;p *ngIf=&quot;rla.isActive&quot;&gt;{{rla.isActive}}&lt;/p&gt;
  &lt;router-outlet&gt;&lt;/router-outlet&gt;"><pre class="notranslate"><code class="notranslate">  &lt;a routerLink="/team" routerLinkActive #rla="routerLinkActive"&gt;&lt;/a&gt;
  &lt;p *ngIf="rla.isActive"&gt;{{rla.isActive}}&lt;/p&gt;
  &lt;router-outlet&gt;&lt;/router-outlet&gt;
</code></pre></div>
<p dir="auto">Throws an exception because the QueryList isn't set when the isActive method is checked <a href="https://github.com/angular/angular/blob/c9f58cf78cce420762c7f8c51172a10a497468ea/modules/%40angular/router/src/directives/router_link_active.ts#L140">here</a>.</p>
<p dir="auto"><strong>Expected behavior</strong></p>

<p dir="auto">Should be able to bind to isActive property</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>

<p dir="auto">Refer to above code snippet<br>
<strong>What is the motivation / use case for changing the behavior?</strong></p>

<p dir="auto"><strong>Please tell us about your environment:</strong></p>

<ul dir="auto">
<li><strong>Angular version:</strong> 2.3.0</li>
</ul>

<ul dir="auto">
<li><strong>Browser:</strong> [all]</li>
</ul>

<ul dir="auto">
<li><strong>Language:</strong> [all]</li>
</ul>