Recoverable Error: Argument 1 passed to WL_Catalog_ProductController::getFullUrl() must be an instance of Mage_Catalog_Model_Product, boolean given, called in /var/www/vhosts/voya.ie/httpdocs_current/app/code/local/WL/Catalog/controllers/ProductController.php on line 45 and defined  in /var/www/vhosts/voya.ie/httpdocs_current/app/code/local/WL/Catalog/controllers/ProductController.php on line 52

#0 /var/www/vhosts/voya.ie/httpdocs_current/app/code/local/WL/Catalog/controllers/ProductController.php(52): mageCoreErrorHandler(4096, 'Argument 1 pass...', '/var/www/vhosts...', 52, Array)
#1 /var/www/vhosts/voya.ie/httpdocs_current/app/code/local/WL/Catalog/controllers/ProductController.php(45): WL_Catalog_ProductController::getFullUrl(false)
#2 /var/www/vhosts/voya.ie/httpdocs_current/app/code/local/WL/Catalog/controllers/ProductController.php(13): WL_Catalog_ProductController->redirectToFullUrl(962)
#3 /var/www/vhosts/voya.ie/httpdocs_current/app/code/core/Mage/Core/Controller/Varien/Action.php(418): WL_Catalog_ProductController->viewAction()
#4 /var/www/vhosts/voya.ie/httpdocs_current/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#5 /var/www/vhosts/voya.ie/httpdocs_current/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#6 /var/www/vhosts/voya.ie/httpdocs_current/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#7 /var/www/vhosts/voya.ie/httpdocs_current/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#8 /var/www/vhosts/voya.ie/httpdocs_current/index.php(83): Mage::run('', 'store')
#9 {main}