Some metadata related methods try to retrieve metadata from the data values. For that they call value() what might lead to exceptions. However retrieving metadata should be safe, i.e. not throw an exception. Attached patch fixes the wrapper to catch the exceptions thrown by value() and improves the docs for value() in regard to exceptions.

CommentFileSizeAuthor
entity_wrapper_exceptions.patch3.18 KBfago
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fago’s picture

Status: Needs review » Fixed

and committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.