In my case I use in views the field "Rendered" with the relationship. When the field is empty the field handler use the function file_view_file, but do not check if the file is empty or not.

#1 file_entity-1857834-1.patch516 bytestobiasb
PASSED: [[SimpleTest]]: [MySQL] 296 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


tobiasb’s picture

Status: Active » Needs review
516 bytes
PASSED: [[SimpleTest]]: [MySQL] 296 pass(es). View
Dave Reid’s picture

How would you even get an empty $file object in this case?

bneil’s picture

Status: Needs review » Postponed (maintainer needs more info)
Devin Carlson’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing due to inactivity and not being able to reproduce the problem when using a standard file object from file_load().