diff --git a/pdf.c b/pdf.c
index 8841d3f856cf630fdaf8a38f662a66d3faf98d9f..d1738eee723695d643e23433f7d00f8ae742ba8f 100644
--- a/pdf.c
+++ b/pdf.c
@@ -3743,8 +3743,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) {