diff --git a/src/applications/diffusion/query/DiffusionCommitQuery.php b/src/applications/diffusion/query/DiffusionCommitQuery.php --- a/src/applications/diffusion/query/DiffusionCommitQuery.php +++ b/src/applications/diffusion/query/DiffusionCommitQuery.php @@ -776,7 +776,8 @@ // See T3377. (int)$ref['identifier']); } else { - if (strlen($ref['identifier']) < $min_qualified) { + if (!phutil_nonempty_string($ref['identifier']) || + strlen($ref['identifier']) < $min_qualified) { continue; }