check for children before taking child in geometry check.
This commit is contained in:
parent
458e9e3d3d
commit
c286eeaa16
@ -291,7 +291,8 @@ public class BarrowmanCalculator extends AbstractAerodynamicCalculator {
|
|||||||
|
|
||||||
SymmetricComponent prevComp = null;
|
SymmetricComponent prevComp = null;
|
||||||
if ((treeRoot instanceof ComponentAssembly) &&
|
if ((treeRoot instanceof ComponentAssembly) &&
|
||||||
(!(treeRoot instanceof Rocket))) {
|
(!(treeRoot instanceof Rocket)) &&
|
||||||
|
(treeRoot.getChildCount() > 0)) {
|
||||||
prevComp = ((SymmetricComponent) (treeRoot.getChild(0))).getPreviousSymmetricComponent();
|
prevComp = ((SymmetricComponent) (treeRoot.getChild(0))).getPreviousSymmetricComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user