Problem/Motivation

It may happen that the provided variable is explicitly NULL:

Drupal\twig_real_content\Exceptions\TwigRealContentException: "Twig Has Content Filter" expects rendered strings as value, NULL given. Did you forget to |render / capture the twig variable before? in Drupal\twig_real_content\TwigRealContentTwigExtension->ensureRendered() (line 97 of modules/contrib/twig_real_content/src/TwigRealContentTwigExtension.php).

We should treat this as empty and not throw an Exception.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Anybody created an issue. See original summary.

anybody’s picture

  • Anybody committed cc13b08 on 1.0.x
    Issue #3307066 by Anybody: Treat NULL as empty
    
anybody’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.