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

org.apache.velocity.app.event.implement.EscapeReference needs a guard against NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5
    • Engine
    • None

    Description

      If reference value passed to EscapeReference.referenceInsert(String reference, Object value) is null,
      then derived clases produce NPE when trying to do toString()

      This condition shall be guarded like this: ( insert it on line 86 - too trivial for a patch )
      if(value == null)
      return value;

      Attachments

        Activity

          People

            Unassigned Unassigned
            ko5tik Konstantin Pribluda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: