Topology ret = null;
for(Sequence s : this) {
Topology a = s.toAtom();
- if (a==null) continue;
if (ret==null) ret = a.dup();
- else ret.add(a.dup());
+ else ret = ret.union(a.dup());
}
+ if (ret==null) throw new RuntimeException("confusion on " + this);
return ret;
}