diff --git a/core/src/net/sf/openrocket/rocketcomponent/Rocket.java b/core/src/net/sf/openrocket/rocketcomponent/Rocket.java index 513f16391..413e99b23 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/Rocket.java +++ b/core/src/net/sf/openrocket/rocketcomponent/Rocket.java @@ -375,6 +375,9 @@ public class Rocket extends ComponentAssembly { copyRocket.stageMap = new ConcurrentHashMap<>(); for( Map.Entry entry : this.stageMap.entrySet()){ final AxialStage stage = (AxialStage)copyRocket.findComponent(entry.getValue().getID()); + if (stage == null) { + throw new IllegalStateException("Stage not found in copy"); + } copyRocket.stageMap.put(entry.getKey(), stage); }