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

indy looses safe navigation flag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-3
    • 2.0-rc-1
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: