« Previous | Next » 

Revision 0d782574

ID0d7825745665f775c1df78835c2c68c1d74f7784
Parent aa812026
Child 4f423a61

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
(cherry picked from commit 8447c1ce416682f530037f48608a0fd990429754)

  • added
  • modified
  • copied
  • renamed
  • deleted