Skip to content

NestedParameter.AssociatedParameter seems to reference the wrong ParameterBase #358

@lxatstariongroup

Description

@lxatstariongroup

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of the COMET-SDK
  • I have searched open and closed issues to ensure it has not already been reported

Description

Original message from Stephan Jahnke who found the issue:

FYI, I found a solution/workaround to this problem via checking whether ElementUsage.ParameterOverride List already contains a ParameterOverride for the selected ParameterType.

My first idea to check 
If(nestedParameter.AssociatedParameter is ParameterOverride) always returned false, as AssociatedParameter always seems to be of type Parameter, even if an ParameterOverride already exists.

According to the docs this could also be a ParameterSubscription, or ParameterOverrride.

Please check and fix accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions