Review TYPO3_6-2 Merged

33612[BUGFIX] Add check if $fileObject is a correct instance

Markus Klein CR +2 V +2 Easy +8 −6 updated 10/29/14, 23:42

Commit message

In some cases the $fileObject is null and getName() is called on
a null object which results in a fatal error.

This patch add a check if $fileObject is an instance of
FileInterface before call getName().
Also correct the wrong doc comment.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 2