diff --git a/AlgebraicDataflowArchitectureModel/src/application/editor/stages/DataFlowModelingStage.java b/AlgebraicDataflowArchitectureModel/src/application/editor/stages/DataFlowModelingStage.java index 363796a..74e43fa 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/editor/stages/DataFlowModelingStage.java +++ b/AlgebraicDataflowArchitectureModel/src/application/editor/stages/DataFlowModelingStage.java @@ -359,7 +359,10 @@ public boolean connectEdge(mxCell edge, mxCell src, mxCell dst) { if (bReflectingArchitectureModel) return false; DataTransferModel model = getModel(); - Channel srcCh = model.getChannel((String) src.getValue()); + + if (!(src.getValue() instanceof String)) return false; + + Channel srcCh = model.getChannel((String) src.getValue()); if (srcCh == null) { srcCh = model.getIOChannel((String) src.getValue()); if (srcCh == null) {