mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Add null check around context
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user