-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed occasional crash when constructing
LineInterfaceGeometry
inst…
…ances (#12679) When a `LineInterfaceGeometry` instance was constructed with a list of node pointers where at least one of them is null, the application would crash. The underlying reason was that calculating the points of the mid-line geometry failed, due to dereferencing the null pointer. This fix checks whether there are any null pointers in the provided vector of node pointers, and if there are it will return a vector of null pointers for the mid-line points. Note that being able to deal with such input is required, since at element registration time we always provide the "blueprint" element with a list of null pointers for the element's nodes.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters