diff --git a/chrome/content/zotero/xpcom/rdf/serialize.js b/chrome/content/zotero/xpcom/rdf/serialize.js index 3e28a6d3fe..aa053ed1ea 100644 --- a/chrome/content/zotero/xpcom/rdf/serialize.js +++ b/chrome/content/zotero/xpcom/rdf/serialize.js @@ -758,7 +758,7 @@ $rdf.Serializer = function () { var attrs = ''; if(subject.termType == 'bnode') { - if(sz.incoming[subject].length != 1) { // not an anonymous bnode + if(!sz.incoming[subject] || sz.incoming[subject].length != 1) { // not an anonymous bnode attrs = ' rdf:nodeID="' + subject.toNT().slice(2) + '"'; } } else {