diff options
author | Alex Legler <alex@a3li.li> | 2011-06-13 18:50:15 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2011-06-13 18:50:15 +0200 |
commit | a5d5036bbdd98172b452de3fe9988a1bef2ded71 (patch) | |
tree | d32aee9f12fa3442daabe151f8c29ee63a20e7f3 | |
parent | Whitespace fixes (diff) | |
download | glsamaker-a5d5036bbdd98172b452de3fe9988a1bef2ded71.tar.gz glsamaker-a5d5036bbdd98172b452de3fe9988a1bef2ded71.tar.bz2 glsamaker-a5d5036bbdd98172b452de3fe9988a1bef2ded71.zip |
bugzilla lib: Skip empty nodes
-rw-r--r-- | lib/bugzilla/bug.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bugzilla/bug.rb b/lib/bugzilla/bug.rb index e49a245..1baf34a 100644 --- a/lib/bugzilla/bug.rb +++ b/lib/bugzilla/bug.rb @@ -71,7 +71,9 @@ module Bugzilla bug.children.each do |node| # Ignore whitespace next if node.type == Nokogiri::XML::Node::TEXT_NODE - + # Ignore empty nodes + next if node.children.size == 0 + case node.name when "bug_id" then @bug_id = content_in node |