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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: