Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-620

Parse error creates an obscure error message

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6
    • Component/s: Engine
    • Labels:
      None

      Description

      The following incorrect velocity usage:

      #macro(foo $a)
      blaa
      #end
      #foo("b" "c")

      or ...

      #if ($x = "a")
      #end

      will create the obscure error message in the exception:

      > Bad Reference "null" in /foo.vm:18

        Attachments

        1. Velocity620TestCase.java
          1 kB
          Nathan Bubna

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              byronvf Byron Foster
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: