Skip to content

Commit

Permalink
Fix nullpointer
Browse files Browse the repository at this point in the history
  • Loading branch information
wederbn committed Dec 8, 2023
1 parent a1498b2 commit 7ceb770
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ public static PlanInstanceDTO convert(final PlanInstance object) {

dto.setCorrelationId(object.getCorrelationId());

dto.setServiceTemplateInstanceId(object.getServiceTemplateInstance().getId());
if (object.getServiceTemplateInstance() != null) {
dto.setServiceTemplateInstanceId(object.getServiceTemplateInstance().getId());
}
dto.setType(object.getType());

dto.setLogs(new ArrayList<>());
Expand Down

0 comments on commit 7ceb770

Please sign in to comment.