1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +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:
vrana 2012-03-01 17:57:19 -08:00
parent cd30946d60
commit 03a108e121

View file

@ -130,7 +130,7 @@ class DifferentialChangesetViewController extends DifferentialController {
}
$coverage = null;
if ($right->getDiffID()) {
if ($right && $right->getDiffID()) {
$unit = id(new DifferentialDiffProperty())->loadOneWhere(
'diffID = %d AND name = %s',
$right->getDiffID(),