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.

CommentFileSizeAuthor
#1 file_entity-1857834-1.patch516 bytestobiasb

Comments

tobiasb’s picture

Status: Active » Needs review
StatusFileSize
new516 bytes
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().