org.jtwig.exception.ParseException: Wrong if syntax Explanation: Input position (line 1, pos 7): {% if recipient.attr != "" %}{{ recipient.attr }}{% else %}no or empty attribute{% endif %} ^

GitHub | thomas-p-wilson | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 296#88044174

    GitHub | 2 years ago | thomas-p-wilson
    org.jtwig.exception.ParseException: Wrong if syntax Explanation: Input position (line 1, pos 7): {% if recipient.attr != "" %}{{ recipient.attr }}{% else %}no or empty attribute{% endif %} ^
  2. 0

    GitHub comment 296#87979931

    GitHub | 2 years ago | stefanmeissner
    org.jtwig.exception.ParseException: Wrong if syntax Explanation: Input position (line 1, pos 7): {% if recipient.attr != "" %}{{ recipient.attr }}{% else %}no or empty attribute{% endif %} ^

    Root Cause Analysis

    1. org.jtwig.exception.ParseException

      Wrong if syntax Explanation: Input position (line 1, pos 7): {% if recipient.attr != "" %}{{ recipient.attr }}{% else %}no or empty attribute{% endif %} ^

      at org.jtwig.extension.core.tokenparsers.IfStatementParser$$parboiled.rule()
    2. org.jtwig.extension
      IfStatementParser$$parboiled.rule
      1. org.jtwig.extension.core.tokenparsers.IfStatementParser$$parboiled.rule(Unknown Source)
      1 frame
    3. org.jtwig.parser
      JtwigContentParser$$parboiled.start
      1. org.jtwig.parser.parboiled.JtwigContentParser$$parboiled.tokenParsers(Unknown Source)
      2. org.jtwig.parser.parboiled.JtwigContentParser$$parboiled.content(Unknown Source)
      3. org.jtwig.parser.parboiled.JtwigContentParser$$parboiled.start(Unknown Source)
      3 frames
    4. org.jtwig
      Environment.parse
      1. org.jtwig.Environment.parse(Environment.java:93)
      1 frame