View | Details | Raw Unified | Return to bug 56529
Collapse All | Expand All

(-)Validator.java (-2 / +4 lines)
Lines 1124-1133 Link Here
1124
1124
1125
                // When attribute is not an expression,
1125
                // When attribute is not an expression,
1126
                // contains its textual value with \$ and \# escaping removed.
1126
                // contains its textual value with \$ and \# escaping removed.
1127
                String textAttributeValue;
1127
                String textAttributeValue = "";
1128
                if (!elExpression && el != null) {
1128
                if (!elExpression && el != null) {
1129
                    // Should be a single Text node
1129
                    // Should be a single Text node
1130
                    textAttributeValue = ((ELNode.Text) el.iterator().next()).getText();
1130
                   if(el.iterator().hasNext()) {
1131
                      textAttributeValue = ((ELNode.Text) el.iterator().next()).getText();
1132
                   }
1131
                } else {
1133
                } else {
1132
                    textAttributeValue = xmlAttributeValue;
1134
                    textAttributeValue = xmlAttributeValue;
1133
                }
1135
                }

Return to bug 56529