tracker issue : CF-4204307

select a category, or use search below
(searches all categories and all time range)
Title:

Member Function Bug: Value must be initialized before use.

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Dave L. / ()

Created: 05/14/2019

Components: Language, Member Functions

Versions: 2016,2018

Failure Type: Crash

Found In Build/Fixed In Build: Latest /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 0

Problem Description:
Unhandled Exception
Value must be initialized before use when referencing a structure in a member function

Steps to Reproduce:
https://cffiddle.org/app/file?filepath=83be9235-2aaa-4ea5-b6ac-158e43b736d4/c0f006c3-be17-44de-8131-72aedd060fbb/3665ad05-ee0c-49fc-85d1-ae107d02802f.cfm

Actual Result:
"Value must be initialized before use."
Expected Result:
The code: result.fruits.updated.append() should work.
Any Workarounds:
result?.fruits?.updated?.append() Or alternatively, the code works on Lucee
https://trycf.com/gist/d93e3c3b020be5f83782ca3e0e243920/lucee?theme=monokai

This issue occurs on ColdFusion 2016 (latest) and 2018 (latest)

Attachments:

Comments: