Hey guys, im getting a null pointer exception... but i dont know what is wrong.
Im trying to get data from a hashmap, and place it in a swing tabel.
ArrayList planes_array[] = null;
//planes_array[0] = new ArrayList();
for(int i=0; i<planes.size(); i++)
{
ArrayList tmp_array = new ArrayList();
tmp_array.add("1");
tmp_array.add("asdfaf");
tmp_array.add("12");
planes_array[i]=null; <--- null pointer on this row
planes_array[i]=tmp_array;
}
Do you guys know what the problem is? or do you need more info? (what info?)
Thx