ID 602284 - Nuke Studio/Hiero crashes when accessing the Metadata of a Tag that was initialized without a name

Follow

Problem summary:
Nuke Studio/Hiero crashes when accessing the Metadata of a Tag that was initialized without a name
 
Customer reported version:
Hiero 16.0v1
 
Customer reported platform:
Rocky 9
 
Steps to reproduce:
1) Launch Nuke Studio/Hiero and open the Script Editor
2) Execute the following code and observe the application's performance:

tag = hiero.core.Tag() md = tag.metadata()
 
Expected behavior:
Accessing the metadata of a Tag should not cause Nuke Studio/Hiero to crash, regardless of the Tag's initial parameters.
 
Actual behavior:
If a Tag is created with an empty name, such as tag = hiero.core.Tag() or tag = hiero.core.Tag(""), Nuke Studio/Hiero will crash if the metadata for the object is accessed via tag.metadata().
 
Workaround:
Besides creating the Tag with a non-empty name like with the following code, there is no known workaround at this time:
tag = hiero.core.Tag(" ") #Use a temporary/non-empty string md = tag.metadata() print(md)
 
Reproduced by Support in:
Nuke Studio 16.0v4 - Windows 11, macOS 14 Sonoma
Nuke Studio 15.0v1 - Windows 11
Nuke Studio 14.0v1 - Windows 11
Nuke Studio 13.0v1 - Windows 11
Nuke Studio 12.0v1 - Windows 11
 
Earliest version tested:
Nuke Studio 12.0v1 - This issue appears to be in all tested versions of the product
 

    We're sorry to hear that

    Please tell us why