mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 21:20:45 +00:00
Add null check around context
This commit is contained in:
@ -64,10 +64,13 @@ public class RenderTemplateAction extends AbstractQActionFunction<RenderTemplate
|
|||||||
Velocity.init();
|
Velocity.init();
|
||||||
Context context = new VelocityContext();
|
Context context = new VelocityContext();
|
||||||
|
|
||||||
|
if(input.getContext() != null)
|
||||||
|
{
|
||||||
for(Map.Entry<String, ?> entry : input.getContext().entrySet())
|
for(Map.Entry<String, ?> entry : input.getContext().entrySet())
|
||||||
{
|
{
|
||||||
context.put(entry.getKey(), entry.getValue());
|
context.put(entry.getKey(), entry.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setupEventHandlers(context);
|
setupEventHandlers(context);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user