Body(Text) is null when template is created via GUI
Steps to reproduce issue:
Create notification template in GUI. Fill only HTML body and leave text body empty.
Set this template to some action.
When this template should be send it fails on NullPointerException in DefaultIdmNotificationTemplateService on row this.velocityEngine.evaluate(velocityContext, bodyText, template.getCode(), text); because text is null.
Updated by Ondřej Kopr over 3 years ago
- Status changed from New to Needs feedback
- Assignee changed from Ondřej Kopr to Roman Kučera
- % Done changed from 0 to 90
I fixed the problem, please Roman could you make a review? New tests are included.
Commit: https://github.com/bcvsolutions/CzechIdMng/commit/dda37950fdca40760c374052dbb50bb3a538dc40 (branch: develop)