{"thread":{"id":"54389","subject":"[PATCH] line-log: handle deref_tag() returning NULL","startedAt":"2020-10-11T16:03:58Z","lastAt":"2020-10-11T16:03:58Z","messageCount":1,"participants":["René Scharfe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"407302","messageId":"90968bb8-61da-e31e-e697-97cbe048e73e@web.de","threadId":"54389","inReplyTo":null,"subject":"[PATCH] line-log: handle deref_tag() returning NULL","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2020-10-11T16:03:40Z","receivedAt":"2020-10-11T16:03:58Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Signed-off-by: René Scharfe <l.s.r@web.de>\n---\n line-log.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/line-log.c b/line-log.c\nindex 68eeb425f8..75c8b1acff 100644\n--- a/line-log.c\n+++ b/line-log.c\n@@ -481,7 +481,7 @@ static struct commit *check_single_commit(struct rev_info *revs)\n \t\tif (obj->flags & UNINTERESTING)\n \t\t\tcontinue;\n \t\tobj = deref_tag(revs->repo, obj, NULL, 0);\n-\t\tif (obj->type != OBJ_COMMIT)\n+\t\tif (!obj || obj->type != OBJ_COMMIT)\n \t\t\tdie(\"Non commit %s?\", revs->pending.objects[i].name);\n \t\tif (commit)\n \t\t\tdie(\"More than one commit to dig from: %s and %s?\",\n--\n2.28.0\n"}]}