Skip to content

Commit

Permalink
Merge pull request #1078 from npharate/fixIndexOutOfBoundsException
Browse files Browse the repository at this point in the history
fix IndexOutOfBoundsException
  • Loading branch information
npharate authored May 26, 2023
2 parents bb95c0c + 4000323 commit dc9c715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/hubspot/jinjava/lib/tag/SetTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public void executeSet(
setVariable(
interpreter,
varTokens[0],
resolvedList != null ? resolvedList.get(0) : null
resolvedList != null && resolvedList.size() > 0 ? resolvedList.get(0) : null
);
}
}
Expand Down

0 comments on commit dc9c715

Please sign in to comment.