Skip to content

Commit

Permalink
Avoid NPE in Domplate
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Aug 3, 2012
1 parent 7f4ec50 commit d9fed63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extension/content/firebug/lib/domplate.js
Expand Up @@ -240,6 +240,9 @@ DomplateTag.prototype =
var iterOuts = [];
outputs.push(iterOuts);

if (!iter)
return;

if (isArray(iter) || iter instanceof NodeList)
iter = new ArrayIterator(iter);

Expand Down

0 comments on commit d9fed63

Please sign in to comment.