Skip to content

Commit

Permalink
Fix nullpointer
Browse files Browse the repository at this point in the history
  • Loading branch information
N0W0RK committed Aug 1, 2024
1 parent 63fd455 commit d5b9d28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,13 @@ private void assertScienceEventsCSVFile(Path extractedZipDirPath, Set<ScienceEve
scienceEvent.setTimestamp(ZonedDateTime.parse(record.get("timestamp")));
scienceEvent.setType(ScienceEventType.valueOf(record.get("event_type")));
scienceEvent.setResourceId(Long.parseLong(record.get("resource_id")));
scienceEvent.setIdentity(TEST_PREFIX + "student1");
actual.add(scienceEvent);
}
}
catch (IOException e) {
fail("Failed while reading science events CSV file");
}

assertThat(actual).usingElementComparator(ScienceUtilService.scienceEventComparator).containsExactlyInAnyOrderElementsOf(events);
}

Expand Down

0 comments on commit d5b9d28

Please sign in to comment.