From 18be5dc55a5641cbdf90f6545706a76804470159 Mon Sep 17 00:00:00 2001
From: srosse <stephane.rosse@frentix.com>
Date: Mon, 12 Aug 2019 09:10:27 +0200
Subject: [PATCH] no-jira: fix issue with deleted roll call in 13.0 upgrader

---
 src/main/java/org/olat/upgrade/OLATUpgrade_13_0_0.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/olat/upgrade/OLATUpgrade_13_0_0.java b/src/main/java/org/olat/upgrade/OLATUpgrade_13_0_0.java
index 50b89dd0052..4a706d8f29c 100644
--- a/src/main/java/org/olat/upgrade/OLATUpgrade_13_0_0.java
+++ b/src/main/java/org/olat/upgrade/OLATUpgrade_13_0_0.java
@@ -238,7 +238,7 @@ public class OLATUpgrade_13_0_0 extends OLATUpgrade {
 			Long rollCallKey = auditLog.getRollCallKey();
 			if(rollCallKey != null) {
 				LectureBlockRollCall call = lectureService.getRollCall(new LectureBlockRollCallRefImpl(rollCallKey));
-				if(call.getAppealDate() == null) {
+				if(call != null && call.getAppealDate() == null) {
 					call.setAppealDate(auditLog.getCreationDate());
 					call.setAppealStatus(LectureBlockAppealStatus.oldWorkflow);
 					lectureService.updateRollCall(call);
-- 
GitLab