1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +01:00

Fix exception for new error stuff in Conduit

Summary: This might be `null`.

Test Plan: Loaded, got exception, applied patch, no exception. Viewed a method with an actual message too, that also worked.

Reviewers: chad, btrahan

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D7955
This commit is contained in:
epriestley 2014-01-13 15:32:37 -08:00
parent 8a7429b879
commit 3fc807bed1

View file

@ -112,9 +112,12 @@ final class PhabricatorConduitConsoleController
$form_box = id(new PHUIObjectBoxView())
->setHeaderText($method->getAPIMethodName())
->setErrorView($status_view)
->setForm($form);
if ($status_view) {
$form_box->setErrorView($status_view);
}
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb($method->getAPIMethodName());