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 if-statment guarding for invalid vector access #996

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

cburandt
Copy link
Contributor

Fix an obvious bug

Check that the correct vector is not empty before accessing its first element.

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

@Pietfried Pietfried force-pushed the fix/energyNode_emptyVectorGuard branch from acafe57 to 23f0601 Compare December 18, 2024 09:13
@Pietfried Pietfried merged commit d8db948 into main Dec 18, 2024
10 of 11 checks passed
@Pietfried Pietfried deleted the fix/energyNode_emptyVectorGuard branch December 18, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants