java.lang.NullPointerException
它在我的嵌套数组中。基本上我想检索arrayIWantThisCat
[10 {1,2,3,4} , 20 {5,6,7,8}]
String[][] arrayIWantThisCat;
String[] arrayAddendAmounts;
try {
SQLiteAdapter info = new SQLiteAdapter(this);
info.open();
alAddends = info.getFinalCategorysTagAddend();
info.close();
// Array holds all unique Addend amounts
arrayAddendAmounts = alAddends.toArray(new String[alAddends.size()]);
} catch (SQLiteConstraintException e) {
Log.d("TAG", "failure to get data,", e);
return;
}
int numberOfAddends = arrayAddendAmounts.length;
for (int i = 0; i < numberOfAddends; i++) {
try {
SQLiteAdapter info = new SQLiteAdapter(this);
info.open();
alWhatCatDoYouWant = info.getFinalCategorysCatIDsBasedOnAddend(arrayAddendAmounts[i]);
info.close();
***// This is where the issue is ( Nested Array )***
arrayIWantThisCat[i] = alWhatCatDoYouWant.toArray(new String[alWhatCatDoYouWant.size()]);
} catch (SQLiteConstraintException e) {
Log.d("TAG", "failure to get data,", e);
return;
}
}