For some reason the arrays are being sent null in setListGrades, however inside the log shows the normal arrays. The API is being consumed correctly, so why is it null in sending this method?
@Override
public void onNext(GradeModel grades) {
BigDecimal[] gradesList = new BigDecimal[grades.getReportLists().length];
Integer[] faultsList = new Integer[grades.getReportLists().length];
String[] classesList = new String[grades.getReportLists().length];
for (int i = 0; i < grades.getReportLists().length; i++) {
gradesList[i] = grades.getReportLists()[i].getGradesList();
faultsList[i] = grades.getReportLists()[i].getFaultList();
classesList[i] = grades.getReportLists()[i].getClassList();
}
Log.i(TAG, "caralhoooooo " + Arrays.asList(classesList) + Arrays.asList(gradesList) + Arrays.asList(faultsList));
mainPresenter.setListGrades(gradesList, faultsList, classesList);
}
});