From 34d66d1d832e9f39e81d3ec5215b3d23522e29dc Mon Sep 17 00:00:00 2001
From: Martijn Stegeman <martijn@stgm.nl>
Date: Fri, 20 Jul 2018 15:46:19 +0200
Subject: [PATCH] allow emtpy grader when necessary

---
 app/views/admin/dump_grades.html.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/admin/dump_grades.html.erb b/app/views/admin/dump_grades.html.erb
index df7df2a0..0a90f7dd 100644
--- a/app/views/admin/dump_grades.html.erb
+++ b/app/views/admin/dump_grades.html.erb
@@ -37,7 +37,7 @@
 			<tr>
 				<td><strong><%= sub.pset.name if sub.pset.present? %></strong><br><small><%= sub.created_at.strftime("%d-%m-%Y %H:%M") %></small></td>
 				<% if sub.grade.present? %>
-				<td><%= sub.grade.any_final_grade %><br><small><%= sub.grade.updated_at.strftime("%d-%m-%Y %H:%M") %> (<%= sub.grade.grader.name %>)</small></td>
+				<td><%= sub.grade.any_final_grade %><br><small><%= sub.grade.updated_at.strftime("%d-%m-%Y %H:%M") %> (<%= sub.grade.grader.name if sub.grade.grader %>)</small></td>
 				<td>
 					<%= sub.grade.subgrades.to_h.values.join(" / ") %>
 				</td>