Contacts Email Send displaying Exception and Email sending error

Notice : Trying to get property ‘name’ of non-object in C:\xampp\htdocs\suitecrm\modules\Emails\EmailsController.php on line 177

This is the error displayed while trying to send emails from the contact module. And after selecting and sending the email, there is a loading screen which does not complete. “Anyway the email is sent to the contacts.”

All you need to make display off these errors.
If you know how to do in php.ini , then off error_reporting from there.
Easiest way to put this line on top index.php