RuntimeException copying & pasting a step
@@ -195,8 +195,11 @@ public class HopGuiPipelineClipboardDelegate {
// Handle pasting multiple times, need to update source and target transform names
int srcTransformPos =
transformOldNames.indexOf(transformErrorMeta.getSourceTransform().getName());
- int tgtTransformPos =
+ int tgtTransformPos = -1;
+ if (transformErrorMeta.getTargetTransform() != null) {
+ tgtTransformPos =
transformOldNames.indexOf(transformErrorMeta.getTargetTransform().getName());
+ }
TransformMeta sourceTransform =
pipelineMeta.findTransform(transforms[srcTransformPos].getName());
if (sourceTransform != null) {
