View Issue Details

IDProjectCategoryView StatusLast Update
0010107CTT UA Binary2 - CTT Binarypublic2025-01-20 15:09
ReporterYannik Klaass Assigned To 
PrioritynormalSeveritycrashReproducibilityhave not tried
Status newResolutionopen 
Summary0010107: CTT crashes when trying to access converted NULL-Variant values
Description

When using the conversion methods of the CttVariantClass on a NULL-Variant, the returned type is an OpcUa_Null (0), which cannot be handled correctly by the script engine, e. g. when passing the value to a function and then accessing it. As a result, the CTT crashes.

Steps To Reproduce

Code:

function accessInvalidValue( value ) {
    print( value );
}

function script001() {

    var nullVariant = new UaVariant();
    var invalidValue = nullVariant.toStringArray();
    accessInvalidValue( invalidValue );

    return( true );
}

Test.Execute( { Procedure: script001} );
TagsNo tags attached.
Files Affected

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-01-20 14:58 Yannik Klaass New Issue
2025-01-20 14:58 Yannik Klaass Severity minor => crash
2025-01-20 15:04 Alexander Allmendinger Steps to Reproduce Updated
2025-01-20 15:09 Yannik Klaass Steps to Reproduce Updated