1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Fix PhabricatorEmptyQueryException handling in DiffusionCommitQuery::loadPage()

Summary: Add an additional check that `$empty_exception` is not `null` before try to `throw` it.

Test Plan: Read the previous code; run static code analysis.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25781
This commit is contained in:
Andre Klapper 2024-08-15 16:02:33 +02:00
parent b9ea6f1ce8
commit edb2175a9b

View file

@ -252,7 +252,7 @@ final class DiffusionCommitQuery
$table->getTableName());
}
if (!$subqueries) {
if (!$subqueries && $empty_exception) {
throw $empty_exception;
}