From 1f53fc8202659e5f09a770cb572fd5f717964845 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 21 Jun 2012 01:09:58 -0400 Subject: [PATCH] Fix serialization of anonymous nodes with no incoming arcs. Fixes #139, sz.incoming[subject] is undefined during Dublin Core Unqualified RDF export --- chrome/content/zotero/xpcom/rdf/serialize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {