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

directive.Parse eating RuntimeException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None

      Description

      The org.apache.velocity.runtime.directive.Parse class is "eating" RuntimeExceptions thrown by Nodes being rendered on line 195. These errors are logged, but are not rethrown.

      These types of errors are typically NPE being thrown by model objects trying to render themselves using their toString() method.

      It is better if any RuntimeExceptions are not caught by this method, as it allows the calling code to document/report the error.

        Attachments

        1. Parse_patch.txt
          0.7 kB
          Malcolm Edgar

          Activity

            People

            • Assignee:
              henning Henning Schmiedehausen
              Reporter:
              medgar Malcolm Edgar
            • Votes:
              5 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: