We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f57c065 commit 5278ec9Copy full SHA for 5278ec9
assignment/tool/src/java/org/sakaiproject/assignment/entityproviders/AssignmentEntityProvider.java
@@ -2247,7 +2247,9 @@ public SimplePeerAssessmentItem(PeerAssessmentItem item) {
2247
this.scaledFactor = item.getScaledFactor();
2248
this.draft = item.isDraft();
2249
2250
- this.attachmentUrlList = item.getAttachmentRefList().stream()
+ this.attachmentUrlList = Optional.ofNullable(item.getAttachmentRefList())
2251
+ .orElseGet(Collections::emptyList)
2252
+ .stream()
2253
.map(Reference::getUrl)
2254
.collect(Collectors.toList());
2255
}
0 commit comments