« Previous | Next » 

Revision 8447c1ce

ID8447c1ce416682f530037f48608a0fd990429754
Child 94851432

Added by Bastian Waidelich over 7 years ago

[BUGFIX] Allow ViewHelperVariableContainer to hold NULL values

``ViewHelperVariableContainer::exists()`` checks whether a specified
key is set via ``isset()`` which leads to the behavior NULL can't be
retrieved from the container leading to unexpected exceptions.

Example::

<f:switch expression="{expression}" />

Throws an exception if ``{expression}`` evaluates to NULL.

Make sure to use ``ViewHelperVariableContainer::remove()`` to delete
a value from the container.

Change-Id: I8b77238dafba4fd6d1450b94bcc0057d76026ad8
Fixes: FLOW-16
Releases: master, 2.2, 2.1

  • added
  • modified
  • copied
  • renamed
  • deleted