FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix IndexOutOfBoundsException · proxo/jinjava@4000323 · GitHub

/ jinjava Public
forked from HubSpot/jinjava

Commit 4000323

Browse files
committed
fix IndexOutOfBoundsException
1 parent ba9be23 commit 4000323

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/com/hubspot/jinjava/lib/tag/SetTag.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public void executeSet(
249249
setVariable(
250250
interpreter,
251251
varTokens[0],
252-
resolvedList != null ? resolvedList.get(0) : null
252+
resolvedList != null && resolvedList.size() > 0 ? resolvedList.get(0) : null
253253
);
254254
}
255255
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL