Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NestedParameter.AssociatedParameter seems to reference the wrong ParameterBase #358

Open
3 tasks done
lxatstariongroup opened this issue Jan 15, 2025 · 0 comments
Open
3 tasks done

Comments

@lxatstariongroup
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant