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

directive.Parse eating RuntimeException

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.5
    • Engine
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment