PrefixSearch: avoid looking for titles that don't exist
authorChad Horohoe <chadh@wikimedia.org>
Mon, 26 Oct 2015 18:50:23 +0000 (11:50 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Mon, 26 Oct 2015 18:50:23 +0000 (11:50 -0700)
commit119a792d74d01e4eb897659e311eadad8ff30937
tree3e435b6ae101cc1c811cf08232751d31c84678a9
parent602d7901dda5492153cf90bfe12a8d005dbad0af
PrefixSearch: avoid looking for titles that don't exist

WikiPage::getRedirectTarget() can very easily return null. Don't
blow up when that happens.

Properly document PrefixSearch::getRedirectTarget() while we're
here.

Bug: T116029
Change-Id: Ib509e8e3e6ec04a787de3857a4b5ee9b01560559
includes/PrefixSearch.php