mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +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:
parent
b9ea6f1ce8
commit
edb2175a9b
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ final class DiffusionCommitQuery
|
|||
$table->getTableName());
|
||||
}
|
||||
|
||||
if (!$subqueries) {
|
||||
if (!$subqueries && $empty_exception) {
|
||||
throw $empty_exception;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue