Exception: Call to a member function getCurrentAlias() on null