Uploaded image for project: 'Form (External)'
  1. Form (External)
  2. FORM-4

Form macro throws null pointer if question is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.1.2
    • 1.1.1
    • None

      Error message:

      The following has evaluated to null or missing:
      ==> question.rangeFrom  [in template "form-core/macros/form.ftl" at line 90, column 51]
      
      ----
      Tip: It's the step after the last dot that caused this error, not those before it.
      ----
      Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
      ----
      

      Problem line 90.

      Add null check for question.

        Acceptance criteria

              rfalvo Raphael Falvo
              rgange Richard Gange
              Services
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: