kaystrobach / TYPO3.dyncss

Dyncss base extension - Donate if you like it http://donate.kay-strobach.de/
http://forge.typo3.org/projects/extension-dyncss
GNU General Public License v2.0
9 stars 27 forks source link

Exception on $activePreset = null in ApplicationContext #64

Closed pniederlag closed 5 years ago

pniederlag commented 5 years ago

If i switch my installation to TYPO3_CONTEXT=Testing I run into an Exception caused by isDevelopPresetActive() in KayStrobach\Dyncss\Utilities\ApplicationContext

There is no $activePreset available which is why $activePreset->getName() will trigger an exception. https://github.com/kaystrobach/TYPO3.dyncss/blob/6f947abc14d4b4904a02875d6caa8a68d6a2b628/Classes/Utilities/ApplicationContext.php#L76

Will upload a patch