Thread:Thread history (1)

When I try to see a thread history, the following error is displayed:

Fatal error: Call to a member function getNamespace on a non-object in vendors/php/mediawiki/includes/Revision.php on line 49

This happens in my local installation.

The url is:

http://myserver.com/index.php?title=Thread:Test_subject_(1)&lqt_method=thread_history