Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewExamine.php |
— | — | @@ -212,7 +212,7 @@ |
213 | 213 | // Normalise username |
214 | 214 | $userTitle = Title::newFromText( $searchUsername ); |
215 | 215 | |
216 | | - if ( $userTitle->getNamespace() == NS_USER ) |
| 216 | + if ( $userTitle && $userTitle->getNamespace() == NS_USER ) |
217 | 217 | $this->mSearchUser = $userTitle->getText(); // Allow User:Blah syntax. |
218 | 218 | elseif ( $userTitle ) |
219 | 219 | // Not sure of the value of prefixedText over text, but no need to munge unnecessarily. |