Skip to content
This repository was archived by the owner on Aug 17, 2018. It is now read-only.

Commit 370cf2f

Browse files
author
Kin Man Chung
committed
If the TLD bodycontent is null, output a error message
svn path=/trunk/; revision=1408
1 parent 2a0097e commit 370cf2f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

impl/src/main/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,9 @@ private TagInfo createTagInfo(TreeNode elem, String jspVersion)
492492
} else if ("bodycontent".equals(tname) ||
493493
"body-content".equals(tname)) {
494494
bodycontent = element.getBody();
495+
if (bodycontent == null) {
496+
bodycontent = "null"; // An error will be raised later
497+
}
495498
} else if ("display-name".equals(tname)) {
496499
displayName = element.getBody();
497500
} else if ("small-icon".equals(tname)) {

0 commit comments

Comments
 (0)