Android - updating a list adapter creates a NullPointException
- by GeekedOut
I have a ListActivity which has an adapter that crashes. Here is the code that crashes the program:
Question q = new Question ();
q.setQuestion( "" );
questions.add(q);
adapter = new ArrayAdapter<Question>(this, R.layout.user_question_list,
R.id.label, questions);
Here is how I create the adapter:
…