Double variable assignment failing in ASM

Description

The following code used in Testbox BaseSpec.cfc fails

variables.$mockbox = this.$mockbox = new testbox.system.MockBox( arguments.generationPath );


Error:

-> Error: Cannot invoke "String.replace(char, char)" because the return value of "ortus.boxlang.compiler.asmboxpiler.Transpiler.getProperty(String)" is null -> at /home/runner/work/coldbox-platform/coldbox-platform/testbox/system/BaseSpec.cfc:1668 1666: // Lazy Load it 1667: if ( isNull( this.$mockbox ) ) { 1668: variables.$mockbox = this.$mockbox = new testbox.system.MockBox( arguments.generationPath ); 1669: } else { 1670: // Generation path updates -> at /home/runner/work/coldbox-platform/coldbox-platform/testbox/system/BaseSpec.cfc:1708 -> at /home/runner/work/coldbox-platform/coldbox-platform/tests/specs/logging/AbstractAppenderTest.cfc:5 -> at /home/runner/work/coldbox-platform/coldbox-platform/testbox/system/BaseSpec.cfc:1380 -> at /home/runner/work/coldbox-platform/coldbox-platform/testbox/system/runners/UnitRunner.cfc:309

Activity

Show:

Jacob Beers January 14, 2025 at 2:53 PM

Currently, I’m unable to reproduce this issue. I’ve added a passing test to AssignmentTest.testMultipleAssignment .

Luis Majano January 12, 2025 at 8:51 PM

This would be a blocker

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Priority

Sentry

Created January 12, 2025 at 5:48 PM
Updated January 15, 2025 at 10:47 PM
Resolved January 14, 2025 at 2:53 PM

Flag notifications