Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5479

indy looses safe navigation flag

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-3
    • Fix Version/s: 2.0-rc-1
    • Component/s: None
    • Labels:

      Description

      for the following script:

      class X {
          def value
      }
      def m(x) {
          x?.getValue()
      }
      def x = new X(value:1)
      m(x)
      m(null)
      

      Indy fails to keep the safeNavigation flag and causes a NPE for the getValue() call on the m(null) invocation

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              blackdrag Jochen Theodorou
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: