TSK-1409: Remove possible Nullpointer in TaskHistoryEvent

This commit is contained in:
Joerg Heffner 2020-10-13 09:47:20 +02:00 committed by gitgoodjhe
parent b23c6873db
commit 358da98ddf
1 changed files with 1 additions and 1 deletions

View File

@ -45,8 +45,8 @@ public class TaskHistoryEvent {
parentBusinessProcessId = task.getParentBusinessProcessId();
domain = task.getDomain();
workbasketKey = task.getWorkbasketSummary().getKey();
taskClassificationCategory = task.getClassificationSummary().getCategory();
if (task.getClassificationSummary() != null) {
taskClassificationCategory = task.getClassificationSummary().getCategory();
taskClassificationKey = task.getClassificationSummary().getKey();
}
if (!task.getAttachmentSummaries().isEmpty()) {