NPE in AssignmentEntityProvider (attachments) when browse server clicked

Description

We had a report of a NPE in AssignmentEntityProvider. This was triggered in the browse server and the trace was.

Caused by: java.lang.NullPointerException
at org.sakaiproject.assignment.entityproviders.AssignmentEntityProvider$SimpleAssignment.<init>(AssignmentEntityProvider.java:247)
at org.sakaiproject.assignment.entityproviders.AssignmentEntityProvider.getAssignmentsForSite(AssignmentEntityProvider.java:672)
... 35 more

This looks like code involved in getting the name of an attachment, and is likely for some type of broken attachments. The vm's check that the properties are valid before displaying them, so the entity provider should also do that. I'm going to add in some debugging code (which maybe should be info) to help track down these problem attachments as I'm not sure where they're coming from and it's not super easy in a course with a ton of assignments.

Activity

Hudson CI Server October 31, 2014 at 9:18 PM

UNSTABLE: Integrated in sakai-10-java-1.7 #141 (See http://builds.sakaiproject.org:8080/job/sakai-10-java-1.7/141/)
merge 315039 to 10.x (matthew@longsight.com: rev 315070)

Derek Ramsey October 31, 2014 at 9:43 AM

Verified on trunk using the provided testing plan.

sakai/trunk on Oracle - Built: 10/31/14 08:00 - Sakai Revision: 315053 (Kernel 11-SNAPSHOT)

Hudson CI Server October 30, 2014 at 6:06 PM

SUCCESS: Integrated in sakai-trunk-java-1.7 #511 (See http://builds.sakaiproject.org:8080/job/sakai-trunk-java-1.7/511/)
- NPE in AssignmentEntityProvider (attachments) (matthew@longsight.com: rev 315039)

Matthew Jones October 30, 2014 at 3:35 PM

Resolved in r315039

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Labels

Created October 30, 2014 at 3:31 PM
Updated January 13, 2016 at 3:54 PM
Resolved October 30, 2014 at 3:35 PM