During export of the products i am getting,
Fatal error: Call to a member function getName() on a non-object in vendor/magento/module-catalog-import-export/Model/Export/Product.php on line 403
Definitely this failure is a bug, because even if your data is not correct then Magento 2 should show an end-user message instead of an automatic PHP low-level message.