- PipeControlPoint sub = getControlPoint().getSubPoint().get(0);
- if (sub.getParent() != this.alternativePipeRun)
- this.alternativePipeRun.addChild(sub);
+ PipeControlPoint sub = getControlPoint().getDualSub();
+ if (sub.getParent() != this.alternativePipeRun) {
+ if (this.alternativePipeRun != null) {
+ this.alternativePipeRun.addChild(sub);
+ } else if (sub.getPipeRun() != null) {
+ // FIXME : how to handle child point without proper run?
+ sub.getPipeRun().remChild(sub);
+ }
+ }
+