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

Fix NPE in AutomatonPerimeterResultImpl #1195

Merged
merged 5 commits into from
Dec 2, 2024
Merged

Conversation

phiedw
Copy link
Collaborator

@phiedw phiedw commented Nov 13, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

If the sensitivity fails initially for an automaton perimeter, the result for it will be DEFAULT because it checks the status of the sensitivityResult (which is the one post PRA so is DEFAULT as long as the N situation is ok). When building 2P inputs, there's then a crash when attempting to get setpoints in that result.

What is the new behavior (if this is a feature change)?
The status is now checked for the specific state, and when building 2P inputs, we skipt results that have a FAILURE status.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Other information:

Bug encountered in the SWE CC process.

…esult to fix errors trying to fetch a result

Signed-off-by: Philippe Edwards <[email protected]>
@phiedw phiedw added bug Something isn't working PR: waiting-for-review This PR is waiting to be reviewed labels Nov 13, 2024
@Godelaine Godelaine added PR: waiting-for-correction This PR is waiting to be corrected by its author PR: waiting-for-review This PR is waiting to be reviewed and removed PR: waiting-for-review This PR is waiting to be reviewed PR: waiting-for-correction This PR is waiting to be corrected by its author labels Nov 28, 2024
@Godelaine Godelaine self-requested a review November 29, 2024 13:22
@Godelaine Godelaine merged commit 4a002e5 into main Dec 2, 2024
11 checks passed
@Godelaine Godelaine deleted the fix_null_in_automaton_result branch December 2, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR: waiting-for-review This PR is waiting to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants