www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 1f53fc8202659e5f09a770cb572fd5f717964845
parent 05acc6dea932c464401a0194ea8f92f4962da303
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 21 Jun 2012 01:09:58 -0400

Fix serialization of anonymous nodes with no incoming arcs.

Fixes #139, sz.incoming[subject] is undefined during Dublin Core Unqualified RDF export

Diffstat:
Mchrome/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 @@ -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 {