Browse files

MYFACES-4072 passthrough checked always set (add null check for rende…

…r passthrough attributes)

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent baa383c commit 3c0beea450d0b9545ca6f34b27467fae46a01b44 lu4242 committed Oct 28, 2016
@@ -435,7 +435,12 @@ private void closeStartTagIfNecessary() throws IOException
// same here. After all, it is resposibility of the one who set the passthrough
// attribute to do the proper encoding in cases when a URI is provided. However,
// that does not means the attribute should not be encoded as other attributes.
- encodeAndWriteAttribute(key, value);
+ // According to tests done, if passthrough attribute is null, the attribute must not
+ // be rendered.
+ if (value != null)
+ {
+ encodeAndWriteAttribute(key, value);
+ }

0 comments on commit 3c0beea

Please sign in to comment.