Details

    • Type: Bug
    • Status: Rejected
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.44
    • Fix Version/s: 5.1.0.34
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              da_cameron Adam Cameron
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: