title: ActionBarActivity getSupportActionBar().hide() throws NullPointerException
body: <p>Call </p>
  
  <pre><code> if (getSupportActionBar() != null)
       getSupportActionBar().hide();
  </code></pre>
  
  <p>or just:  </p>
  
  <pre><code>getActionBar()
  </code></pre>
  
  <p>in android.support.v7.app.ActionBarActivity  I get such exception:</p>
  
  <pre><code>    ...
      java.lang.NullPointerException
      at android.support.v7.app.ActionBarImplICS.hide(ActionBarImplICS.java:302)
      at android.support.v7.app.ActionBarImplJB.hide(ActionBarImplJB.java:20)
      ...
  </code></pre>
  
  <p><strong>EDIT:</strong>
  it just happens when activity have Theme:</p>
  
  <pre><code>&lt;style name="MyTheme" parent="Theme.AppCompat.Light"&gt;
          &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="android:windowFullscreen"&gt;false&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>note: </p>
  
  <pre><code>getSupportActionBar()
  </code></pre>
  
  <p>do not return null</p>