Null Pointer Exception in my Listener
<p>I am making a call to my AsyncTask from my Fragment class, when i try to send the data back to my Fragment, i get a null pointer exception. </p>

<pre><code>public interface AsyncListner { 
    public void onLoadComplete(List&lt;DocumentResponse&gt; documents);   
}
</code></pre>

<p>My Fragment class implements the interface. </p>

<pre><code>public class FragmentClass extends SherlockFragment implements AsyncListner {@
    Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        new AsyncTask(Obj, getSherlockActivity()).setListener(this);
        new AsyncTask(Obj, getSherlockActivity()).execute();
    }

    @Override
    public void onLoadComplete(List &lt; Response&gt; data) {
        Log.d("Result", data.toString());
    }
}
</code></pre>

<p>I followed this answer. 
<a href="http://stackoverflow.com/a/13476196/98514">http://stackoverflow.com/a/13476196/98514</a></p>
