Null pointer exeception in ListAdapter
<p>I want to display Data in List View but I got Error Null Pointer Exception run time in line</p>

<pre><code>fList.setAdapter(la);
</code></pre>

<p>My code is here List is complete printing in Log
Thanks</p>

<pre><code>public class Forfattere extends Activity {
/** Called when the activity is first created. */
ArrayList&lt;String&gt; aList = new ArrayList&lt;String&gt;();
@Override
public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    setContentView(R.layout.forfattere);
    ListView fList = (ListView)findViewById(R.id.Author_list);
    ArrayList&lt;String&gt; a = DBlistbookfestival.getAuthorName();
    for(int i=0;i&lt;a.size();i++){
        aList.add(a.get(i));
        Log.v("all_data",a.get(i));
    }
    ListAdapter1 la = new ListAdapter1(this, R.id.Author_list, aList);
    fList.setAdapter(la);
 }

private class ListAdapter1 extends ArrayAdapter&lt;String&gt; {  // --CloneChangeRequired
    private ArrayList&lt;String&gt; mList;  // --CloneChangeRequired
    public ListAdapter1(Context context, int textViewResourceId,ArrayList&lt;String&gt; list) { // --CloneChangeRequired
        super(context, textViewResourceId, list);
        this.mList = list;
    }

    public View getView(int position, View convertView, ViewGroup parent){
        View view = convertView;
        try{
        if (view == null) {
            LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            view = vi.inflate(R.layout.custom_radio, null);     // --CloneChangeRequired(list_item)
        }
        final String listItem = mList.get(position);    // --CloneChangeRequired                
        if (listItem != null) {
            ( (TextView) view.findViewById(R.id.textView111) ).setText(listItem);
        }}catch(Exception e){

        }
        return view;
    }
}   
</code></pre>

<p>}</p>
