Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Adam Cameron
Adam CameronPriority
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 26 July 2015 at 13:47
Updated 2 February 2018 at 08:17
Resolved 2 February 2018 at 08:17
Repro:
// Test.cfc component {}
// arraysOfObjects.cfm function returnsArrayOfTests(size){ var baseArray = []; baseArray.set(1, size, new Test()); return baseArray; } tests = returnsArrayOfTests(5); writeDump(tests);
Expected:
An array of Test objects
Actual:
Lucee 5.0.0.44 Error (java.lang.NullPointerException)
Message java.lang.NullPointerException
Cause java.lang.NullPointerException
Stacktrace The Error Occurred in
C:\apps\lucee\5.0\express\lucee-server\context\library\tag\Dump.cfc: line 94
92: }
93: catch(e) {
94: var meta = dumpStruct(structKeyExists(attrib,'var') ? attrib.var : nullValue(), attrib.top, attrib.show, attrib.hide, attrib.keys, attrib.metaInfo, attrib.showUDFs);
95: }
96:
called from C:\apps\lucee\5.0\express\lucee-server\context\library\function\writeDump.cfm: line 25
called from C:\apps\lucee\5.0\express\webapps\ROOT\shared\cfml\dataTypes\complexTypeChecking\arraysOfObjects.cfm: line 11
Same code works on CF11.
I realise I'm not on the most recent drop of Lucee 5, but don't imagine this will impact the situation. Pls advise if there's a reasonable chance that it might, and I'll retest.
This is not blocking me in any way, and I am only raising it so you're aware of it. I can do what I need to do here with CF instead anyhow. So don't put any effort into fixing this that could be better spent elsewhere, pls.