public int getPos(int index) {
if(this.hasAllTerms == false){
throw new IllegalArgumentException("Not all terms are present");
}
else if(index < 0 || index > terms.size()){
throw new ArrayIndexOutOfBoundsException("Index out of bounds!");
}
return minSnip.get(minSnipIndex)[index+1];
}
}
at the else if line my Junit test fails and says null pointer exception. Where is a null pointer?