View Issue Details

IDProjectCategoryView StatusLast Update
0010107CTT UA Binary2 - CTT Binarypublic2025-01-24 16:16
ReporterYannik Klaass Assigned ToYannik Klaass  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status resolvedResolutionfixed 
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

Yannik Klaass

2025-01-24 16:16

developer   ~0022335

Fixing pointerToScriptValue methods of the built-in array type classes to return a neutral QObject representing a null-value, which can be handled correctly

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
2025-01-23 21:56 Paul Hunkar Assigned To => Yannik Klaass
2025-01-23 21:56 Paul Hunkar Status new => assigned
2025-01-24 16:16 Yannik Klaass Status assigned => resolved
2025-01-24 16:16 Yannik Klaass Resolution open => fixed
2025-01-24 16:16 Yannik Klaass Note Added: 0022335