Skip to content

Commit 3d6a065

Browse files
authored
Merge pull request #1023 from HubSpot/filter-null-errors
Filter out null errors
2 parents e9e50d1 + 682d30f commit 3d6a065

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/hubspot/jinjava/interpret/JinjavaInterpreter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,10 @@ public BlockInfo getCurrentBlock() {
710710
}
711711

712712
public void addError(TemplateError templateError) {
713+
if (templateError == null) {
714+
return;
715+
}
716+
713717
if (context.getThrowInterpreterErrors()) {
714718
if (templateError.getSeverity() == ErrorType.FATAL) {
715719
// Throw fatal errors when locating deferred words.

0 commit comments

Comments
 (0)