Skip to content

Commit

Permalink
Fix google#77 - Use an empty ArrayList for each session being synchro…
Browse files Browse the repository at this point in the history
…nised
  • Loading branch information
alsutton committed Nov 3, 2014
1 parent f2e8742 commit bd6c17c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ public void sync() {
null,
null);
LOGD(TAG, "Number of unsynced feedbacks: " + c.getCount());
List<String> questions = new ArrayList<String>();
List<String> updatedSessions = new ArrayList<String>();

while (c.moveToNext()) {
String sessionId = c.getString(c.getColumnIndex(ScheduleContract.Feedback.SESSION_ID));

List<String> questions = new ArrayList<String>();
questions.add(c.getString(c.getColumnIndex(ScheduleContract.Feedback.SESSION_RATING)));
questions.add(c.getString(c.getColumnIndex(ScheduleContract.Feedback.ANSWER_RELEVANCE)));
questions.add(c.getString(c.getColumnIndex(ScheduleContract.Feedback.ANSWER_CONTENT)));
Expand Down

0 comments on commit bd6c17c

Please sign in to comment.