Handle exception for setting mvoid with objects and add test