[Solved] LogCat entry meaning 2


java.lang.NullPointerException
    at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:394)
ArrayAdapter<Comment> adapter = 
    new ArrayAdapter<Comment>(this, android.R.layout.simple_list_item_1, values);

values has at least one null object in it, which you cannot have.


You can read through the source code and see this happens here:

T item = getItem(position);
if (item instanceof CharSequence) {
    text.setText((CharSequence)item);
} else {
    text.setText(item.toString()); // Line 394, when item is null this throws an NPE
}

0

solved LogCat entry meaning 2