Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ protected static SoyValueProvider asSoyValue(@Nullable Object object) {
}

@SuppressWarnings("Immutable")
protected static SoyValueProvider asTemplateValue(TemplateInterface template) {
return TemplateValue.createFromTemplate(template);
protected static SoyValueProvider asTemplateValue(@Nullable TemplateInterface template) {
return template == null ? NullData.INSTANCE : TemplateValue.createFromTemplate(template);
}

/** Throws if not required parameters are set. */
Expand Down