title: Can getSupportActionBar be null right after setSupportActionBar?
body: <p>Should I null check the <code>getSupportActionBar()</code> method even if earlier in that method I have set the support action bar using <code>getSupportActionBar()</code>?</p>
  
  <p>In <code>onCreate()</code> I have the three lines</p>
  
  <pre><code>Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  getSupportActionBar().setTitle(getIntent().getStringExtra(TITLE_KEY));
  </code></pre>
  
  <p>Android Studio then gives me the <strong>warning</strong></p>
  
  <pre><code>"Method invocation may produce java.lang.NullPointerException"
  </code></pre>
  
  <p>Assuming that the <strong>findViewById</strong> method does return a valid <code>ToolBar</code> object, do I still need to null check the <code>getSupportActionBar()</code> method or is it safe to just ignore the warning?</p>