diff --git a/beat/web/toolchains/static/toolchains/js/editor.js b/beat/web/toolchains/static/toolchains/js/editor.js index 91af32e0473e3b798da7d845f6ebbb48f8ef4d4c..2a90b5c3971129cc5ac19d10dbc1cb9ebe87aaab 100644 --- a/beat/web/toolchains/static/toolchains/js/editor.js +++ b/beat/web/toolchains/static/toolchains/js/editor.js @@ -2659,7 +2659,7 @@ beat.toolchains.editor.ToolchainView.prototype._onMouseDown = function(event) var infos = this._getComponentAt(this.mouse_position.x, this.mouse_position.y); // On a connection: Display the channel selection dialog - if (infos.component instanceof beat.toolchains.common.ConnectionRepresentation) + if ((infos != null) && (infos.component instanceof beat.toolchains.common.ConnectionRepresentation)) { var entries = []; var valid_channels = infos.component.connection.output.block.inputs.map(function(x) { return x.channel; }).unique()