initLoader() and onCreateOptionsMenu() possible threading bug/issue
<p>I am fetching some data from SQLite in a Fragment using a CursorLoader. The initLoader() for this is executed in onActivityCreated()...</p>

<pre><code>public class MyFragment extends Fragment implements LoaderCallbacks&lt;Cursor&gt;
{
    MenuItem menuItemOne;

    @Override
    public void onActivityCreated(Bundle savedInstanceState)
    {
        super.onActivityCreated(savedInstanceState);
        getLoaderManager().initLoader(0, null, this);
    }

    @Override
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
    {
        inflater.inflate(R.menu.myMenu, menu);
        menuItemOne = menu.findItem(R.id.menuItemOne);
    }

    @Override
    public void onLoadFinished(Loader&lt;Cursor&gt; loader, Cursor cursor)
    {
        menuItemOne.doSomething();
    }
}
</code></pre>

<p>The above code is simplified for ease of reading. Here is my problem...</p>

<ul>
<li>On a <strong>Nexus S</strong>, there is <strong>no problem</strong>.</li>
<li>On a <strong>Nexus 7</strong>, a <strong>null pointer arises in onLoadFinished</strong>. menuItemOne is null here.</li>
</ul>

<p>The Nexus S is using Android 4.1.2 and the Nexus 7 is using Android 4.2.2.</p>

<ul>
<li>Should I be running initLoader() elsewhere?</li>
<li>Do you think there is a bug/difference in the Android versions?</li>
</ul>
