diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index dcf40a38e..e9e75f487 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -24,7 +24,7 @@ */ 'use strict' var CSL = { - PROCESSOR_VERSION: "1.1.174", + PROCESSOR_VERSION: "1.1.175", CONDITION_LEVEL_TOP: 1, CONDITION_LEVEL_BOTTOM: 2, PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/, @@ -3911,7 +3911,7 @@ CSL.Output.Queue.prototype.string = function (state, myblobs, blob) { } ret = ret.concat(addtoret); } - if (blobjr.strings.first_blob) { + if (blobjr.strings.first_blob && state.registry.registry[blobjr.strings.first_blob]) { state.registry.registry[blobjr.strings.first_blob].offset = state.tmp.offset_characters; state.tmp.count_offset_characters = false; } @@ -5846,7 +5846,7 @@ CSL.citeStart = function (Item, item, blockShadowNumberReset) { this.tmp.authority_stop_last = 0; }; CSL.citeEnd = function (Item, item) { - if (this.tmp.disambig_restore) { + if (this.tmp.disambig_restore && this.registry.registry[Item.id]) { this.registry.registry[Item.id].disambig.names = this.tmp.disambig_restore.names.slice(); this.registry.registry[Item.id].disambig.givens = this.tmp.disambig_restore.givens.slice(); for (var i=0,ilen=this.registry.registry[Item.id].disambig.givens.length;i