Skip to content

Commit

Permalink
b=477735; fix XPCOMUtils.generateQI to handle null/undef members in a…
Browse files Browse the repository at this point in the history
…rray; r=sayrer
  • Loading branch information
vvuk committed Feb 10, 2009
1 parent 248b4fb commit ecf8d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/xpconnect/loader/XPCOMUtils.jsm
Expand Up @@ -112,7 +112,7 @@ var XPCOMUtils = {
* param, and if it is, returns |this| (the object it was called on).
*/
generateQI: function(interfaces) {
return makeQI([i.name for each(i in interfaces)]);
return makeQI([i.name for each (i in interfaces) if (i)]);
},

/**
Expand Down

0 comments on commit ecf8d0a

Please sign in to comment.