diff --git a/pdf.c b/pdf.c
index b095f35d5528851716356f4c920c3d2729afe405..3db39ccb6a66ec0f71e3ea9366c60630d22ce215 100644
--- a/pdf.c
+++ b/pdf.c
@@ -466,10 +466,7 @@ int main(int argc, char *argv[])
 	}
 
 	/* print result */
-	if (!res->ast)
-		printf("null\n");
-	else
-		h_pprint(stdout, res->ast, 0, 2);
+	h_pprint(stdout, res->ast, 0, 2);
 
 	return 0;
 }