title: NullPointerException on actionBar.setDisplayShowTitleEnabled(boolean) in Api version 22
body: <p>I am using Actionbar in my App, it working fine below api 22.</p>
  
  <p>using <code>android.support.v4.app.FragmentActivity</code> </p>
  
  <p>use below code for Action bar</p>
  
  <pre><code>public void initActionBar() {
             actionBar = getActionBar();
             actionBar.setDisplayShowTitleEnabled(true);
             actionBar.setDisplayHomeAsUpEnabled(false);
             actionBar.setDisplayUseLogoEnabled(false);
             actionBar.setHomeButtonEnabled(true);
             actionBar.setTitle("Rides");
             actionBar.setIcon(R.drawable.menu);
             actionBar.setBackgroundDrawable(newColorDrawable(getResources().getColor(R.color.orange)));
             actionBar.setDisplayShowCustomEnabled(true);
  }
  </code></pre>
  
  <p>App Theme in style.xml</p>
  
  <pre><code>&lt;!-- Application theme. --&gt;
  &lt;style name="AppTheme" parent="android:Theme.Holo.Light"&gt;
      &lt;item name="android:activatedBackgroundIndicator"&gt;@drawable/list_activated_background&lt;/item&gt;
      &lt;item name="android:typeface"&gt;serif&lt;/item&gt;
      &lt;item name="android:actionBarSize"&gt;55dip&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>When run same In version 22 get below error</p>
  
  <p><strong>LogCat Error</strong></p>
  
  <p>Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setDisplayShowTitleEnabled(boolean)' on a null object reference
              at com.holachef.android.chef_android.activity.HomeActivity.initActionBar(HomeActivity.java:160)
              at com.holachef.android.chef_android.activity.HomeActivity.onCreate(HomeActivity.java:62)
              at android.app.Activity.performCreate(Activity.java:5953)
              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1128)
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2267)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2388)
              at android.app.ActivityThread.access$800(ActivityThread.java:148)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1292)
              at android.os.Handler.dispatchMessage(Handler.java:102)
              at android.os.Looper.loop(Looper.java:135)</p>
  
  <p>use android studio for this, same code in eclips run successfully on version 22, Is issue related with android studio. </p>
  
  <p>Any help will be appreciated. Thanks.</p>