mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-01 18:30:59 +01:00
Don't throw exception in diff versus file removed from revision
Test Plan: Display a revision where a file was removed compared to previous diffs, like https://secure.phabricator.com/D1724?vs=3008&id=3009. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1754
This commit is contained in:
parent
cd30946d60
commit
03a108e121
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class DifferentialChangesetViewController extends DifferentialController {
|
||||||
}
|
}
|
||||||
|
|
||||||
$coverage = null;
|
$coverage = null;
|
||||||
if ($right->getDiffID()) {
|
if ($right && $right->getDiffID()) {
|
||||||
$unit = id(new DifferentialDiffProperty())->loadOneWhere(
|
$unit = id(new DifferentialDiffProperty())->loadOneWhere(
|
||||||
'diffID = %d AND name = %s',
|
'diffID = %d AND name = %s',
|
||||||
$right->getDiffID(),
|
$right->getDiffID(),
|
||||||
|
|
Loading…
Reference in a new issue