I am trying to make this simple function:
private void getID(){
    for(int i=0;i<crops.size();i++){
        ID.add(i);
    }
}
where cropps.size() is the size of a bitmaparraylist which i've made. People told me that these function fail because you can get the argument null. But how can i get null if i don't fill in any arguments...
I've also tried to make the input of the function an Arraylist of integers but this failed as wel. On my Oncreate method i use getID() after i made the crops so that isn't the error as well. So i'm kind of confused here and help would be much appreciated.
Kees
 
    