[BUGFIX] Check View Object in EXT:documentation to prevent fatal errors 86/43986/2
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Sun, 11 Oct 2015 15:21:51 +0000 (17:21 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 11 Oct 2015 18:51:57 +0000 (20:51 +0200)
commit7e47d45bb7e750a928fc40ffd8281e047b9c8103
tree92ebb3302e0047b4130919204fc7a93df630bab0
parenta6aad5ddd987b907aeae676f4b59142475ea6d60
[BUGFIX] Check View Object in EXT:documentation to prevent fatal errors

Extbase fires initializeView even if no view is needed (for example if
an action redirects).
We check for the correct ViewObject first to prevent these errors.

Resolves: #70588
Releases: master
Change-Id: I033edb4a7797164af3ee315bcd1da455376bdffc
Reviewed-on: http://review.typo3.org/43986
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/documentation/Classes/Controller/DocumentController.php