Add null check around context

This commit is contained in:
2023-06-23 16:42:47 -05:00
parent 9d1266036c
commit e28f8b8317

View File

@ -64,9 +64,12 @@ public class RenderTemplateAction extends AbstractQActionFunction<RenderTemplate
Velocity.init();
Context context = new VelocityContext();
for(Map.Entry<String, ?> entry : input.getContext().entrySet())
if(input.getContext() != null)
{
context.put(entry.getKey(), entry.getValue());
for(Map.Entry<String, ?> entry : input.getContext().entrySet())
{
context.put(entry.getKey(), entry.getValue());
}
}
setupEventHandlers(context);