My bet is that you haven't initialized the teamTable
multidimensional array properly. Does it have enough rows? Have you called teamTable[rowIndex] = new Object[colNum];
? If you forgot about the second one, or teamTable
is just null, then you get a NullPointerException.
If this isn't clear, then read a tutorial about Java multidimensional arrays, e.g. the answers for this question: Syntax for creating a two-dimensional array