Answer the question
In order to leave comments, you need to log in
How to get rid of java.lang.NullPointerException error?
The bottom line is this
ArrayList<EventCalendar> event_calendar_list = null;
for (int i = 0; i < tvSeries.size(); i++) {
System.out.println(tvSeries.get(i).getKinopoiskID());
ArrayList<Series> series = null;
try {
series = ld.loadMyMuviCalendar(tvSeries.get(i).getKinopoiskID().toString());
} catch (IOException e) {
e.printStackTrace();
} catch (JSONException e) {
e.printStackTrace();
}
for (int ii = 0; ii < series.size(); ii++) {
EventCalendar ec = new EventCalendar();
ec.setDate(series.get(ii).getDate());
ec.setMuvi_obj(tvSeries.get(i));
ec.setSeri_obj(series.get(ii));
System.out.println(ec);
//
event_calendar_list.add(ec);
}
Answer the question
In order to leave comments, you need to log in
umm so it's null
replace
on the
ArrayList<EventCalendar> event_calendar_list = new ArrayList<EventCalendar> () ;
The question is so well formulated that it contains the answer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question