We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fbf5cc commit fb645efCopy full SHA for fb645ef
RubyScript/src/org/knime/ext/jruby/RubyScriptNodeDialog.java
@@ -405,11 +405,13 @@ public void mouseClicked(MouseEvent event) {
405
JTable table = (JTable) event.getSource();
406
Point p = event.getPoint();
407
int row = table.rowAtPoint(p);
408
-
409
- m_scriptTextArea.insert(
410
- String.format(TEMPLATE_FLOW_VAR, table.getModel()
411
- .getValueAt(row, 0).toString()),
412
- m_scriptTextArea.getCaretPosition());
+ if (row >= 0) {
+ m_scriptTextArea.insert(
+ String.format(TEMPLATE_FLOW_VAR, table
+ .getModel().getValueAt(row, 0)
+ .toString()),
413
+ m_scriptTextArea.getCaretPosition());
414
+ }
415
}
416
417
});
0 commit comments