Null pointer with Array.set()

Description

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.

Environment

None

Activity

Pothys - MitrahSoft 
2 February 2018 at 08:17

Fixed the issue in 5.1.0.34

Adam Cameron 
19 April 2016 at 17:28

The news is I've stopped using CFML and I don't give a shit any more one way or the other

But nah, it's fine... just close it. Like I said to Andrew the other night, you can close all the tickets I raised if you like. It might save you some time as I tended to raise everything I found simply to get it onto your radar. It'll still be on your radar if they're closed, and it will mean they won't distract you doing more important stuff.

Michael Offner 
19 April 2016 at 17:13

Michael Offner 
19 April 2016 at 16:44

any news? otherwise we will close the ticket.

Michael Offner 
29 July 2015 at 13:08

Fixed

Details

Assignee

Reporter

Priority

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