Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
UnassignedUnassignedReporter
Zain Ul AbideenZain Ul AbideenFix versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Zain Ul Abideen
Zain Ul AbideenFix versions
Priority
Sentry
Sentry
Sentry
Created September 3, 2024 at 10:30 AM
Updated September 5, 2024 at 10:34 AM
Resolved September 3, 2024 at 2:21 PM
Encountering an issue with the
Duplicate()
function in BoxLang. WhenDuplicate()
is used to copy a struct that contains a variable with anull
value, it throws a null pointer exception. This exception occurs only when thenull
value is inside a struct. If thenull
value is directly assigned to a variable and duplicated, the function works correctly.Code Example:
local.testStruct = {
key1 = "value1",
key2 = javaCast("null", "") // Null value
};
// Attempt to duplicate the struct
local.duplicateStruct = Duplicate(local.testStruct);