Custom Listview Adapter Null Object Reference
Not sure what hasn't been initialised here, I'm guessing I have to manually create a new row on the list itself but I have no clue how to even start on that. Here is the code I use
Solution 1:
your convertView
is null. You are not assigning your layout view in convertView
try use the row as you are using:
row = inflator.inflate(R.layout.fragment_delivery_collect_item, parent, false);
so do:
if(row!= null) {
handler.mName = (TextView) row.findViewById(R.id.item_name);
handler.mSize = (TextView) row.findViewById(R.id.item_size);
handler.mQty = (TextView) row.findViewById(R.id.item_qty);
handler.mPrice = (TextView) row.findViewById(R.id.item_price);
Post a Comment for "Custom Listview Adapter Null Object Reference"