9527e8
--- rpm-4.11.3/lib/fprint.c.old	2014-02-05 14:04:01.000000000 +0100
9527e8
+++ rpm-4.11.3/lib/fprint.c	2019-08-21 16:28:03.255538275 +0200
9527e8
@@ -484,7 +484,7 @@
9527e8
 	(void) rpmdbCheckSignals();
9527e8
 
9527e8
 	if ((fi = rpmteFI(p)) == NULL)
9527e8
-	    continue;	/* XXX can't happen */
9527e8
+	    continue;
9527e8
 
9527e8
 	(void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_FINGERPRINT), 0);
9527e8
 	rpmfiFpLookup(fi, fpc);
9527e8
@@ -518,6 +518,9 @@
9527e8
     while ((p = rpmtsiNext(pi, 0)) != NULL) {
9527e8
 	(void) rpmdbCheckSignals();
9527e8
 
9527e8
+	if ((fi = rpmteFI(p)) == NULL)
9527e8
+	    continue;
9527e8
+
9527e8
 	fs = rpmteGetFileStates(p);
9527e8
 	fc = rpmfsFC(fs);
9527e8
 	(void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_FINGERPRINT), 0);