Uploaded image for project: 'Turbine'
  1. Turbine
  2. TRB-8

Incorrect handling of a null return value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Core 2.3.2
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      I have found a bug within turbine 2.3.2 which results in a NullPointer to be thrown within TemplateURI Line 274.

      I found the Bug because I used $link.addPathInfo($data.getParameters()) which takes all keys within the request, and adds the Keys and their values to the link. The Problem is within getStrings(String key) which returns null of no values are found. TemplateURI does not check the return value for null. I have a patch ready.

        Attachments

        1. test-TRB-8.txt
          2 kB
          Jürgen Hoffmann
        2. npe_patch.txt
          1 kB
          Gunther Olesch
        3. npe_patch.txt
          2 kB
          Gunther Olesch

          Activity

            People

            • Assignee:
              seade Scott Eade
              Reporter:
              byteaction Gunther Olesch
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: