Skip to content

Commit

Permalink
Fix NPE when flattening templates
Browse files Browse the repository at this point in the history
Bug: WPL-2217
Change-Id: I34de9a8e9b192625cbbadf285582145a2e63189a
  • Loading branch information
mduft committed Oct 25, 2023
1 parent bcfdbff commit 3b1c98e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public TemplateableVariableConfiguration(@JsonProperty("template") String templa
}

public TemplateableVariableConfiguration(TemplateableVariableConfiguration r) {
this(r.template, r.id, new LinkedValueConfiguration(r.value.getPreRenderable()), r.description, r.type, r.customEditor);
this(r.template, r.id, r.value != null ? new LinkedValueConfiguration(r.value.getPreRenderable()) : null, r.description,
r.type, r.customEditor);
}

}

0 comments on commit 3b1c98e

Please sign in to comment.