I am trying to add a splash screen to my app to display while everything is loading. I followed this post 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.
theme.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="Theme.SplashScreen" parent="@style/Theme.AppCompat">        
        <item name="android:windowBackground">@drawable/orange_background</item>
        <item name="android:windowNoTitle">true</item>
    </style>
</resources>
Relevant section of AndroidManifest.xml
<application
    android:allowBackup="true"
    android:theme="@style/CustomActionBarTheme" 
    android:label="@string/app_name"
    android:icon="@drawable/ic_launcher"
    android:largeHeap="true" >
    <activity
        android:name="com.example.app.MainActivity"
        android:label="@string/app_name"
        android:theme="@style/Theme.SplashScreen"
        android:screenOrientation="portrait" >
Section in MainActivity.java causing crash
final ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(true);
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)
NOTE: This crash only started happening after I implemented the splash screen.
 
     
     
     
    