title: ActionBar throws NullPointerException after implementing splash screen via theme
body: <p>I am trying to add a splash screen to my app to display while everything is loading. I followed <a href="http://android-developers.blogspot.de/2009/03/window-backgrounds-ui-speed.html" rel="nofollow">this post</a> to do this via a theme. It looks to be working the way I want, but shortly after the splash is displayed the app crashes when trying to customize the ActionBar.</p>
  
  <p>theme.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;style name="Theme.SplashScreen" parent="@style/Theme.AppCompat"&gt;        
          &lt;item name="android:windowBackground"&gt;@drawable/orange_background&lt;/item&gt;
          &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>Relevant section of AndroidManifest.xml</p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:theme="@style/CustomActionBarTheme" 
      android:label="@string/app_name"
      android:icon="@drawable/ic_launcher"
      android:largeHeap="true" &gt;
      &lt;activity
          android:name="com.example.app.MainActivity"
          android:label="@string/app_name"
          android:theme="@style/Theme.SplashScreen"
          android:screenOrientation="portrait" &gt;
  </code></pre>
  
  <p>Section in MainActivity.java causing crash</p>
  
  <pre><code>final ActionBar actionBar = getSupportActionBar();
  actionBar.setDisplayHomeAsUpEnabled(true);
  </code></pre>
  
  <p><strong>Caused by: java.lang.NullPointerException at android.support.v7.app.ActionBarImplICS.setDisplayHomeAsUpEnabled(ActionBarImplICS.java:174) at android.support.v7.app.ActionBarImplJB.setDisplayHomeAsUpEnabled(ActionBarImplJB.java:20)</strong></p>
  
  <p><strong>NOTE:</strong> This crash only started happening after I implemented the splash screen.</p>