diff --git a/src/core/evaluator.js b/src/core/evaluator.js index cd57e193e..7ce1e3999 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -469,6 +469,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { return errorFont(); } } + if (!fontRef) { + warn('fontRef not available'); + return errorFont(); + } + if (this.fontCache.has(fontRef)) { return this.fontCache.get(fontRef); }