NullPointerException fixed
This commit is contained in:
parent
e9b866a004
commit
b037a03b95
@ -53,6 +53,7 @@ public class TbMsgToEmailNode implements TbNode {
|
||||
|
||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||
private static final String IMAGES = "images";
|
||||
private static final String DYNAMIC = "dynamic";
|
||||
|
||||
private TbMsgToEmailNodeConfiguration config;
|
||||
private boolean isDynamicHtmlTemplate;
|
||||
@ -60,7 +61,7 @@ public class TbMsgToEmailNode implements TbNode {
|
||||
@Override
|
||||
public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {
|
||||
this.config = TbNodeUtils.convert(configuration, TbMsgToEmailNodeConfiguration.class);
|
||||
this.isDynamicHtmlTemplate = this.config.getMailBodyType().equals("dynamic");
|
||||
this.isDynamicHtmlTemplate = DYNAMIC.equals(this.config.getMailBodyType());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user