added comment

This commit is contained in:
Nils Norman Haukås 2015-04-21 19:50:54 +02:00
parent 30c80d3c24
commit 7763b36be6

View file

@ -166,13 +166,14 @@ public class EventDbHelper {
ArrayList<Event> events = new ArrayList<>();
Event event;
//Here we try to instatiate all the events from the event strings.
//and we throw away anyone that does not work.
for (String eventString: eventStrings) {
try {
event = new Event(eventString);
events.add(event);
} catch (ArrayIndexOutOfBoundsException e) {
Log.d(LOG_TAG, "Could not create event from malformed data");
e.printStackTrace();
}
}
Log.d(LOG_TAG, "Finished reading stored data");