diff --git a/pdf.c b/pdf.c
index 5fea3229c1a5a68e5aaa9646a80fe8c15f81f720..79c88539111ab29205b381df1ed1c464a05b8cfe 100644
--- a/pdf.c
+++ b/pdf.c
@@ -3721,8 +3721,9 @@ bool parse_fonts(const HParsedToken *dict_t, RsrcDict_T *pgRsrc, struct Env *aux
 	// Handle a dictionary of font resources
 	item = dictentry(fontdict, "Font");
 	item = resolve(aux, item);
-	if (item) { // TODO: Failure ==> xref error -- Figure out how to handle
-		assert(item->token_type == TT_Dict);
+
+	if (item && item->token_type == TT_Dict) {
+		// XXX: Failure ==> xref error -- Figure out how to handle
 		processed = true;
 		Dict *fontlist = H_CAST(Dict, item);
 		if (pgRsrc->fonts) {