title: setSearchableInfo(searchManager.getSearchableInfo) null pointer exception
body: <p>I have checked and double checked my manifest according to the docs and other questions. I cannot understand why setSearchableInfo returns NullPointerException</p>
  
  <p>MainActivity.java</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.menu_main, menu);
  
      SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
      SearchView searchView = (SearchView) menu.findItem(R.id.search).getActionView();
  
      // current activity is not searchable activity
      ComponentName cn = new ComponentName(this, SearchResultsActivity.class);
      searchView.setSearchableInfo(searchManager.getSearchableInfo(cn));
  
      return true;
  }
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;activity
          android:name=".MainActivity"
          android:label="@string/title_main_activity"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.csgiusa.treatmentmanager.csgitreatmentmanager.RoomEditDetailed" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;action android:name="android.intent.action.SEARCH" /&gt;
          &lt;/intent-filter&gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.csgiusa.treatmentmanager.csgitreatmentmanager.MainActivity" /&gt;
          &lt;meta-data
              android:name="android.app.default_searchable"
              android:value=".SearchResultsActivity" /&gt;
      &lt;/activity&gt;
  
      &lt;activity
          android:name=".SearchResultsActivity"
          android:label="@string/title_activity_search_results"&gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.SEARCH" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;meta-data
              android:name="android.app.searchable"
              android:resource="@xml/searchable" /&gt;
  
      &lt;/activity&gt;
  </code></pre>
  
  <p>Searchable.xml</p>
  
  <pre><code>&lt;searchable xmlns:android="http://schemas.android.com/apk/res/android"
      android:label="@string/app_name"
      android:hint="@string/app_name" &gt;
  &lt;/searchable&gt;
  </code></pre>
  
  <p>menu_main.xml</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"         tools:context=".MainActivity"&gt;
  &lt;item android:id="@+id/action_settings"
      android:title="@string/action_settings"
      android:orderInCategory="100" app:showAsAction="never" /&gt;
  &lt;item android:id="@+id/search"
      android:title="@string/search"
      android:icon="@drawable/ic_search"
      app:showAsAction="collapseActionView|ifRoom"
      android:actionViewClass="android.widget.SearchView" /&gt;
  </code></pre>
  
  <p></p>