NullPointer when launching a FragmentActivity with a List?
<p>I keep getting a NullPointer when trying to launch a FragmentActivity.</p>

<p>Here is the nullpointer im getting.</p>

<pre><code>09-05 14:44:21.550: ERROR/AndroidRuntime(19409): FATAL EXCEPTION: main
09-05 14:44:21.550: ERROR/AndroidRuntime(19409): java.lang.NullPointerException
09-05 14:44:21.550: ERROR/AndroidRuntime(19409):     at com.fttech.youtubeReaults.searchYoutube(youtubeReaults.java:182)
09-05 14:44:21.550: ERROR/AndroidRuntime(19409):     at com.fttech.youtubeReaults.onActivityCreated(youtubeReaults.java:59)
09-05 14:44:21.550: ERROR/AndroidRuntime(19409):     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:760)
09-05 14:44:21.550: ERROR/AndroidRuntime(19409):     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:933)
09-05 14:44:21.550: ERROR/AndroidRuntime(19409):     at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:578)
09-05 14:44:21.550: ERROR/AndroidRuntime(19409):     at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1219)
</code></pre>

<p>09-05 14:44:21.550: ERROR/AndroidRuntime(19409):     at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:380)
    09-05 14:44:21.550: ERROR/AndroidRuntime(19409):     at android.os.Handler.handleCallback(Handler.java:587)</p>

<p>The NullPointer is pointing me here..</p>

<pre><code>@Override
public void onActivityCreated(Bundle state){
    super.onActivityCreated(state);

    search = AccessibleYouTube_Fragment.search;

    ((TextView) getView().findViewById(R.id.textViewSearchResultTitle))
            .setText("Captioned search results for " + search);
            //NullPointer is pointing me to this line
    ArrayList&lt;YouTubeResult&gt; ytResults = searchYoutube(search);
</code></pre>

<p>Is it something i am doing wrong here?</p>
