Uploaded image for project: 'Lucee Development'
  1. LDEV-1201

Elvis not working on key returned by function call

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.4.17
    • Labels:
      None
    • Sprint:
      April 2017 Sprint

      Description

      Consider the following code:

      function brad() {
          return {};
      }
          
      echo( brad().foo ?: 'bar' )
      

      The expectation is that the value 'bar' would be used since the key foo doesn't exist, but instead this exception is thrown:

      key [FOO] doesn't exist

      The following also throws the same exception:

      isNull( brad().foo )
      

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              bdw429s Brad Wood
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: