commit | 133836739c9f19de7a9e4dc8074dc0341fa8939c | [log] [tgz] |
---|---|---|
author | Bryan Higgins <bhiggins@blackberry.com> | Thu Nov 14 15:40:35 2013 -0500 |
committer | Bryan Higgins <bhiggins@blackberry.com> | Thu Nov 14 15:40:35 2013 -0500 |
tree | c961a7f640f961f0b9b0894512d0a4e3c0ffb02f | |
parent | 19513a1c31e5cb44971a7c751adef70d66f39ffd [diff] |
CB-5364 config_parser - check for null element text
diff --git a/src/config_parser.js b/src/config_parser.js index 658874d..249a03f 100644 --- a/src/config_parser.js +++ b/src/config_parser.js
@@ -126,8 +126,8 @@ } function textMatch(elm1, elm2) { - var text1 = elm1.text.replace(/\s+/, ""), - text2 = elm2.text.replace(/\s+/, ""); + var text1 = elm1.text ? elm1.text.replace(/\s+/, "") : "", + text2 = elm2.text ? elm2.text.replace(/\s+/, "") : ""; return (text1 === "" || text1 === text2); } }